File tree Expand file tree Collapse file tree
product/productShow/sections Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,13 +2,16 @@ import { Page } from '@playwright/test';
22
33import BasePageModel from '@/pages/BasePageModel' ;
44import LineItemsTable from '@/pages/product/productShow/sections/components/LineItemsTable' ;
5+ import RecordStockTable from '@/pages/product/productShow/sections/components/RecortStockTable' ;
56
67class RecordStockSection extends BasePageModel {
78 lineItemsTable : LineItemsTable ;
9+ recordStockTable : RecordStockTable ;
810
911 constructor ( page : Page ) {
1012 super ( page ) ;
1113 this . lineItemsTable = new LineItemsTable ( page ) ;
14+ this . recordStockTable = new RecordStockTable ( page ) ;
1215 }
1316}
1417
Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ class CompleteStep extends BasePageModel {
4141 get editButton ( ) {
4242 return this . page . getByTestId ( 'edit-button' ) . first ( ) ;
4343 }
44+
45+ get validationOnQtyInReceivingBin ( ) {
46+ return this . page
47+ . locator ( '[class*="alert"]' )
48+ . getByText (
49+ / Q u a n t i t y a v a i l a b l e 0 i s l e s s t h a n q u a n t i t y t o p u t a w a y \d + f o r p r o d u c t /
50+ ) ;
51+ }
4452}
4553
4654export default CompleteStep ;
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ class TransactionTable extends BasePageModel {
2424 . locator ( '.action-menu-item' )
2525 . getByRole ( 'link' , { name : 'Delete' } ) ;
2626 }
27+
28+ get editButton ( ) {
29+ return this . page
30+ . locator ( '.action-menu-item' )
31+ . getByRole ( 'link' , { name : 'Edit' } ) ;
32+ }
2733}
2834
2935class Row extends BasePageModel {
You can’t perform that action at this time.
0 commit comments