Skip to content

Commit

Permalink
fix: add additional locator for account order page (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
frobel authored Jan 28, 2025
1 parent 205902a commit 5e0adee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/page-objects/storefront/AccountOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export class AccountOrder implements PageObject {
const orderShippingMethod = orderItem.locator('.order-table-body-value').nth(4);
const orderDetailButton = orderItem.getByRole('button', {name: /Expand|Show details/});
const orderImage = orderItem.locator('.line-item-img-link');
const taxPrice = orderItem.locator(`dt:text-matches('plus [0-9]\\+\\?% VAT') + dd`);
const shippingCosts = orderItem.locator(`dt:text-matches('Shipping costs:') + dd`);
const totalGross = orderItem.locator(`dt:text-matches('Total (gross):') + dd`);

return {
orderStatus: orderStatus,
Expand All @@ -48,7 +51,9 @@ export class AccountOrder implements PageObject {
orderShippingMethod: orderShippingMethod,
orderDetailButton: orderDetailButton,
orderImage: orderImage,

taxPrice: taxPrice,
shippingCosts: shippingCosts,
totalGross: totalGross,
}
}
getViewSubscriptionLink = (orderNumber: string): Locator => {
Expand Down

0 comments on commit 5e0adee

Please sign in to comment.