Update page value for molding questions, adjust timing of url validation
This commit is contained in:
parent
49c951fe25
commit
e3428b0bf9
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue