Skip to content

Commit 76a7504

Browse files
committed
add elements to putaway pages
1 parent a0f474f commit 76a7504

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

src/pages/putaway/components/CompletePutawayTable.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class CompletePutawayTable extends BasePageModel {
1212
}
1313

1414
get rows() {
15-
return this.table.getByRole('rowgroup');
15+
return this.table.getByRole('row');
1616
}
1717

1818
row(index: number) {
@@ -27,6 +27,10 @@ class Row extends BasePageModel {
2727
super(page);
2828
this.row = row;
2929
}
30+
31+
getputawayBin(rowIndex: number) {
32+
return this.row.getByTestId(`cell-${rowIndex}-undefined`).nth(9);
33+
}
3034
}
3135

3236
export default CompletePutawayTable;

src/pages/putaway/components/SplitModalTable.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ class Row extends BasePageModel {
4747
get quantityField() {
4848
return this.row.getByRole('cell').getByTestId('quantity-input');
4949
}
50+
51+
get clearBinSelect() {
52+
return this.row.locator('.react-select__clear-indicator');
53+
}
54+
55+
get putawayBinField() {
56+
return this.row.getByTestId('bin-select').getByRole('textbox');
57+
}
5058
}
5159

5260
export default SplitModalTable;

src/pages/putaway/components/StartPutawayTable.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ class Row extends BasePageModel {
6262
get quantityField() {
6363
return this.row.getByTestId('cell-0-quantity').getByRole('spinbutton');
6464
}
65+
66+
get splitLineinPutawayBin() {
67+
return this.row.getByTestId('cell-0-putawayBin');
68+
}
6569
}
6670

6771
export default StartPutawayTable;

0 commit comments

Comments
 (0)