@@ -2,7 +2,6 @@ import Navbar from '@/components/Navbar';
22import AppConfig from '@/config/AppConfig' ;
33import { ShipmentType } from '@/constants/ShipmentType' ;
44import { expect , test } from '@/fixtures/fixtures' ;
5- import ProductShowPage from '@/pages/product/productShow/ProductShowPage' ;
65import CreatePutawayPage from '@/pages/putaway/CreatePutawayPage' ;
76import PutawayDetailsPage from '@/pages/putaway/putawayDetails/PutawayDetailsPage' ;
87import StockMovementShowPage from '@/pages/stockMovementShow/StockMovementShowPage' ;
@@ -107,7 +106,6 @@ test.describe('Perform putaway as manager user', () => {
107106 const navbar = new Navbar ( managerUserPage ) ;
108107 const createPutawayPage = new CreatePutawayPage ( managerUserPage ) ;
109108 const putawayDetailsPage = new PutawayDetailsPage ( managerUserPage ) ;
110- const productShowPage = new ProductShowPage ( managerUserPage ) ;
111109
112110 await test . step ( 'Go to create putaway page' , async ( ) => {
113111 await stockMovementShowPage . goToPage ( STOCK_MOVEMENT . id ) ;
@@ -189,7 +187,7 @@ test.describe('Perform putaway as manager user', () => {
189187 await expect (
190188 createPutawayPage . completeStep . confirmPutawayDialog
191189 ) . toContainText (
192- ` Qty5 of item ${ product . name } is still in the receiving bin. Do you want to continue?`
190+ / Q t y 5 o f i t e m . * i s s t i l l i n t h e r e c e i v i n g b i n \ . D o y o u w a n t t o c o n t i n u e \? /
193191 ) ;
194192 await expect (
195193 createPutawayPage . completeStep . confirmPutawayDialog
@@ -204,18 +202,6 @@ test.describe('Perform putaway as manager user', () => {
204202 await expect ( putawayDetailsPage . statusTag ) . toHaveText ( 'Completed' ) ;
205203 } ) ;
206204
207- await test . step ( 'Assert putaway bin on stock card' , async ( ) => {
208- await productShowPage . goToPage ( product . id ) ;
209- await productShowPage . inStockTab . click ( ) ;
210- await productShowPage . inStockTabSection . isLoaded ( ) ;
211- await expect (
212- productShowPage . inStockTabSection . row ( 2 ) . binLocation
213- ) . toHaveText ( internalLocation . name ) ;
214- await expect (
215- productShowPage . inStockTabSection . row ( 2 ) . quantityOnHand
216- ) . toHaveText ( '5' ) ;
217- } ) ;
218-
219205 await test . step ( 'Assert qty still available to putaway on create putaway page' , async ( ) => {
220206 await navbar . profileButton . click ( ) ;
221207 await navbar . refreshCachesButton . click ( ) ;
0 commit comments