Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class LocationDetailsTabSection extends BasePageModel {
getZoneLocation(name: string) {
return this.page.getByRole('listitem').getByText(name, { exact: true });
}

get clearZoneLocation() {
return this.zoneLocationSelect.locator('.search-choice-close');
}
}

export default LocationDetailsTabSection;
8 changes: 8 additions & 0 deletions src/pages/putaway/components/CompletePutawayTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ class Row extends BasePageModel {
get quantity() {
return this.row.getByTestId('table-cell').nth(7);
}

get preferredBin() {
return this.row.getByTestId('table-cell').nth(8);
}

get currentBin() {
return this.row.getByTestId('table-cell').nth(9);
}
}

export default CompletePutawayTable;
11 changes: 11 additions & 0 deletions src/pages/putaway/components/SplitModalTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ class Row extends BasePageModel {
get putawayBinField() {
return this.row.getByTestId('bin-select').getByRole('textbox');
}

get expandPutawayBinSelect() {
return this.row.locator('[class*="react-select__dropdown-indicator"]');
}

getZoneLocation(zoneLocation: string) {
return this.page
.getByTestId('custom-select-dropdown-menu')
.locator('.css-5ih5ya-group react-select__group-heading')
.getByText(zoneLocation, { exact: true });
}
}

export default SplitModalTable;
15 changes: 15 additions & 0 deletions src/pages/putaway/components/StartPutawayTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ class Row extends BasePageModel {
return this.row.getByTestId('select-bin');
}

get expandPutawayBinSelect() {
return this.putawayBinSelect.locator('.react-select__dropdown-indicator');
}

getPutawayBin(putawayBin: string) {
return this.page
.getByTestId('custom-select-dropdown-menu')
Expand All @@ -88,6 +92,10 @@ class Row extends BasePageModel {
return this.row.getByTestId('table-cell').nth(8);
}

get currentdBin() {
return this.row.getByTestId('table-cell').nth(9);
}

get quantityField() {
return this.row.getByTestId('table-cell').nth(7);
}
Expand All @@ -107,6 +115,13 @@ class Row extends BasePageModel {
get expiryDateField() {
return this.row.getByTestId('table-cell').nth(5);
}

getZoneLocation(zoneLocation: string) {
return this.page
.getByTestId('custom-select-dropdown-menu')
.locator('.css-5ih5ya-group react-select__group-heading')
.getByText(zoneLocation, { exact: true });
}
}

export default StartPutawayTable;
Loading
Loading