File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,9 +30,32 @@ class CreatePutawayPage extends BasePageModel {
3030 ) . toBeVisible ( ) ;
3131 }
3232
33+ async goToPage ( ) {
34+ await this . page . goto ( './putAway/create' ) ;
35+ }
36+
3337 get startPutawayButton ( ) {
3438 return this . page . getByTestId ( 'start-putaway' ) . nth ( 0 ) ;
3539 }
40+
41+ get showByStockMovementFilter ( ) {
42+ return this . page . getByTestId ( 'show-by-button' ) ;
43+ }
44+
45+ get linesInPendingPutawayFilter ( ) {
46+ return this . page
47+ . locator ( '#select-id_1 div' )
48+ . filter ( { hasText : 'Exclude' } )
49+ . nth ( 1 ) ;
50+ }
51+
52+ get includeLinesInPedningPutawayFilter ( ) {
53+ return this . page . getByRole ( 'listitem' ) . filter ( { hasText : 'Include' } ) ;
54+ }
55+
56+ get emptyCreatePageInformation ( ) {
57+ return this . page . locator ( '.rt-noData' ) . getByText ( 'No rows found' ) ;
58+ }
3659}
3760
3861export default CreatePutawayPage ;
Original file line number Diff line number Diff line change @@ -31,6 +31,16 @@ class Row extends BasePageModel {
3131 get checkbox ( ) {
3232 return this . row . getByRole ( 'checkbox' ) ;
3333 }
34+
35+ getExpandBinLocation ( binLocation : string ) {
36+ return this . row
37+ . getByTestId ( 'cell-undefined-undefined' )
38+ . getByText ( binLocation ) ;
39+ }
40+
41+ getproductName ( name : string ) {
42+ return this . row . getByTestId ( 'table-cell' ) . getByText ( name ) ;
43+ }
3444}
3545
3646export default CreatePutawayTable ;
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ class Row extends BasePageModel {
5454 . getByRole ( 'listitem' )
5555 . getByText ( putawayBin , { exact : true } ) ;
5656 }
57+
58+ getCurrentBin ( currentBin : string ) {
59+ return this . row . getByTestId ( 'cell-0-currentBin' ) . getByText ( currentBin ) ;
60+ }
5761}
5862
5963export default StartPutawayTable ;
You can’t perform that action at this time.
0 commit comments