From a3234c92130b7f265068ab2d48ca7d25367bf66e Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Wed, 14 May 2025 16:27:36 -0400 Subject: [PATCH] made final amount due text selector more specific --- playwright-tests/pages/PaymentMethodPage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright-tests/pages/PaymentMethodPage.ts b/playwright-tests/pages/PaymentMethodPage.ts index b75157204..2c267c69e 100644 --- a/playwright-tests/pages/PaymentMethodPage.ts +++ b/playwright-tests/pages/PaymentMethodPage.ts @@ -76,7 +76,7 @@ export class PaymentMethodPage extends BasePage { // Cart panel elements this.cartPanelDetails = this.page.locator('.cart-panel'); 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.wiperBladesText = this.page.locator('div', { hasText: /^New wiper blades$/ }); this.rainDefenseText = this.page.locator('div', { hasText: /^Rain Defenseā„¢$/ });