made final amount due text selector more specific

This commit is contained in:
maguire-arman 2025-05-14 16:27:36 -04:00
parent 7ddb3618ae
commit a3234c9213

View file

@ -76,7 +76,7 @@ export class PaymentMethodPage extends BasePage {
// Cart panel elements // Cart panel elements
this.cartPanelDetails = this.page.locator('.cart-panel'); this.cartPanelDetails = this.page.locator('.cart-panel');
this.subtotalText = this.page.locator('.sub-total'); this.subtotalText = this.page.locator('.sub-total');
this.finalAmountDueText = this.page.locator('div.amount-due'); this.finalAmountDueText = this.cartPanelDetails.locator('div.amount-due');
this.glassServiceText = this.page.locator('div', { hasText: /^Glass service only$/ }); this.glassServiceText = this.page.locator('div', { hasText: /^Glass service only$/ });
this.wiperBladesText = this.page.locator('div', { hasText: /^New wiper blades$/ }); this.wiperBladesText = this.page.locator('div', { hasText: /^New wiper blades$/ });
this.rainDefenseText = this.page.locator('div', { hasText: /^Rain Defense™$/ }); this.rainDefenseText = this.page.locator('div', { hasText: /^Rain Defense™$/ });