File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ class Row extends BasePageModel {
5959 return this . row . getByTestId ( 'cell-0-currentBin' ) . getByText ( currentBin ) ;
6060 }
6161
62+ getPreferredBin ( rowIndex : number ) {
63+ return this . row . getByTestId ( `cell-${ rowIndex } -preferredBin` ) ;
64+ }
65+
6266 get quantityField ( ) {
6367 return this . row . getByTestId ( 'cell-0-quantity' ) . getByRole ( 'spinbutton' ) ;
6468 }
Original file line number Diff line number Diff line change @@ -19,6 +19,18 @@ class CompleteStep extends BasePageModel {
1919 get completePutawayButton ( ) {
2020 return this . page . getByTestId ( 'complete-putaway-button' ) . nth ( 1 ) ;
2121 }
22+
23+ get confirmPutawayDialog ( ) {
24+ return this . page . locator ( '.react-confirm-alert' ) ;
25+ }
26+
27+ get yesButtonOnConfirmPutawayDialog ( ) {
28+ return this . confirmPutawayDialog . getByRole ( 'button' , { name : 'Yes' } ) ;
29+ }
30+
31+ get noButtonOnConfirmPutawayDialog ( ) {
32+ return this . confirmPutawayDialog . getByRole ( 'button' , { name : 'No' } ) ;
33+ }
2234}
2335
2436export default CompleteStep ;
You can’t perform that action at this time.
0 commit comments