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) {