Skip to content

Commit 3b360e4

Browse files
committed
add elements to putaway pages
1 parent 8539d86 commit 3b360e4

3 files changed

Lines changed: 37 additions & 0 deletions

File tree

src/pages/putaway/CreatePutawayPage.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff 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

3861
export default CreatePutawayPage;

src/pages/putaway/components/CreatePutawayTable.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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

3646
export default CreatePutawayTable;

src/pages/putaway/components/StartPutawayTable.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

5963
export default StartPutawayTable;

0 commit comments

Comments
 (0)