From e3428b0bf94cd4a709dd2e5ffa54a0587cce2cdb Mon Sep 17 00:00:00 2001 From: Alex Humphries Date: Fri, 7 Mar 2025 14:03:21 -0500 Subject: [PATCH] Update page value for molding questions, adjust timing of url validation --- playwright-tests/pages/BasePage.ts | 2 +- playwright-tests/pages/MoldingQuestionsPage.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playwright-tests/pages/BasePage.ts b/playwright-tests/pages/BasePage.ts index 7ab18f94..2a910b45 100644 --- a/playwright-tests/pages/BasePage.ts +++ b/playwright-tests/pages/BasePage.ts @@ -125,7 +125,6 @@ export class BasePage { without waiting too long if it fails */ while(failCount < 15) { - await this.page.waitForTimeout(1000); const currentUrl = this.page.url(); console.log(`Current URL: ${currentUrl}`) if(currentUrl.includes(issPageValue)) @@ -133,6 +132,7 @@ export class BasePage { else { failCount++; } + await this.page.waitForTimeout(1000); } expect(failCount).not.toEqual(15); }); diff --git a/playwright-tests/pages/MoldingQuestionsPage.ts b/playwright-tests/pages/MoldingQuestionsPage.ts index f8f6a555..378a24c7 100644 --- a/playwright-tests/pages/MoldingQuestionsPage.ts +++ b/playwright-tests/pages/MoldingQuestionsPage.ts @@ -3,7 +3,7 @@ import { BasePage } from './BasePage'; export class MoldingQuestionsPage extends BasePage { readonly page: Page; - issPageValue = 'part-questions'; + issPageValue = 'molding-questions'; readonly yesButton: Locator; constructor(page: Page) {