From f417b331f605f3d5b18e3b36e97bda885a48f519 Mon Sep 17 00:00:00 2001 From: Alex Humphries Date: Mon, 10 Mar 2025 16:21:46 -0400 Subject: [PATCH] Re-add some logging --- playwright-tests/pages/BasePage.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/playwright-tests/pages/BasePage.ts b/playwright-tests/pages/BasePage.ts index d2d03356..a40bad06 100644 --- a/playwright-tests/pages/BasePage.ts +++ b/playwright-tests/pages/BasePage.ts @@ -116,13 +116,17 @@ 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(); + currentUrl = this.page.url(); + console.log(`New URL: ${currentUrl}`); pass = currentUrl.includes(issPageValue); } expect(pass).toBeTruthy();