From 0300d35f868646dbbac429c9863429a4147a0aee Mon Sep 17 00:00:00 2001 From: Alex Humphries Date: Wed, 12 Mar 2025 10:38:57 -0400 Subject: [PATCH] Removed extra logging --- playwright-tests/pages/BasePage.ts | 4 ---- playwright-tests/pages/OrderConfirmationPage.ts | 5 ----- 2 files changed, 9 deletions(-) diff --git a/playwright-tests/pages/BasePage.ts b/playwright-tests/pages/BasePage.ts index 0b853baa..9c01dde5 100644 --- a/playwright-tests/pages/BasePage.ts +++ b/playwright-tests/pages/BasePage.ts @@ -116,17 +116,13 @@ export class BasePage { } async validateURL(issPageValue: string) { - console.log(`Checking for page value: ${issPageValue}`); let pass = false; let currentUrl = this.page.url(); - console.log(`Current URL: ${currentUrl}`); pass = currentUrl.includes(issPageValue); const isBailout = currentUrl.includes('bailout-page'); if(!pass && !isBailout) { - console.log('Waiting for URL to change'); await this.waitForURLToChange(currentUrl); currentUrl = this.page.url(); - console.log(`New URL: ${currentUrl}`); } expect(currentUrl).toContain(issPageValue); } diff --git a/playwright-tests/pages/OrderConfirmationPage.ts b/playwright-tests/pages/OrderConfirmationPage.ts index c0005cdb..736a1b83 100644 --- a/playwright-tests/pages/OrderConfirmationPage.ts +++ b/playwright-tests/pages/OrderConfirmationPage.ts @@ -114,11 +114,8 @@ export class OrderConfirmationPage extends BasePage { } async validateURL() { - console.log("Order confirmation validation override") - console.log(`Checking for page value: ${this.issPageValue}`); let pass = false; let currentUrl = this.page.url(); - console.log(`Current URL: ${currentUrl}`); pass = currentUrl.includes(this.issPageValue); while(!pass && currentUrl.includes('payment')) { await this.waitForURLToChange(currentUrl); @@ -127,10 +124,8 @@ export class OrderConfirmationPage extends BasePage { } const isBailout = currentUrl.includes('bailout-page'); if(!pass && !isBailout) { - console.log('Waiting for URL to change'); await this.waitForURLToChange(currentUrl); currentUrl = this.page.url(); - console.log(`New URL: ${currentUrl}`); } expect(currentUrl).toContain(this.issPageValue); }