Skip to content

Commit f2f2b0d

Browse files
committed
add new elements to product view page
1 parent 41e2e74 commit f2f2b0d

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/pages/product/productShow/ProductShowPage.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ class ProductShowPage extends BasePageModel {
3434
get stockHistoryTab() {
3535
return this.page.getByRole('link', { name: 'Stock History' });
3636
}
37+
38+
get editProductkButton() {
39+
return this.page.getByRole('link', { name: 'Edit Product' });
40+
}
3741
}
3842

3943
export default ProductShowPage;

src/pages/product/productShow/tabs/InStockTabSection.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ class Row extends BasePageModel {
4444
.getByRole('link');
4545
}
4646

47+
get defaultBinLocation() {
48+
return this.row.locator('.line').getByText('Default');
49+
}
50+
4751
get zoneLocation() {
4852
return this.row.locator('.line').locator('.line-base').getByRole('link');
4953
}

0 commit comments

Comments
 (0)