Skip to content

Commit 82b6796

Browse files
committed
add new elements to existing pages
1 parent aa84e9a commit 82b6796

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

src/pages/product/productShow/sections/RecordStockSection.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ import { Page } from '@playwright/test';
22

33
import BasePageModel from '@/pages/BasePageModel';
44
import LineItemsTable from '@/pages/product/productShow/sections/components/LineItemsTable';
5+
import RecordStockTable from '@/pages/product/productShow/sections/components/RecortStockTable';
56

67
class RecordStockSection extends BasePageModel {
78
lineItemsTable: LineItemsTable;
9+
recordStockTable: RecordStockTable;
810

911
constructor(page: Page) {
1012
super(page);
1113
this.lineItemsTable = new LineItemsTable(page);
14+
this.recordStockTable = new RecordStockTable(page);
1215
}
1316
}
1417

src/pages/putaway/steps/CompleteStep.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ class CompleteStep extends BasePageModel {
4141
get editButton() {
4242
return this.page.getByTestId('edit-button').first();
4343
}
44+
45+
get validationOnQtyInReceivingBin() {
46+
return this.page
47+
.locator('[class*="alert"]')
48+
.getByText(
49+
/Quantity available 0 is less than quantity to putaway \d+ for product/
50+
);
51+
}
4452
}
4553

4654
export default CompleteStep;

src/pages/transactions/components/TransactionTable.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ class TransactionTable extends BasePageModel {
2424
.locator('.action-menu-item')
2525
.getByRole('link', { name: 'Delete' });
2626
}
27+
28+
get editButton() {
29+
return this.page
30+
.locator('.action-menu-item')
31+
.getByRole('link', { name: 'Edit' });
32+
}
2733
}
2834

2935
class Row extends BasePageModel {

0 commit comments

Comments
 (0)