Increase timeout for debugging
This commit is contained in:
parent
cd17eb0bcd
commit
6181e0d13d
2 changed files with 6 additions and 4 deletions
|
|
@ -30,7 +30,7 @@ export class BasePage {
|
|||
await expect(async () => {
|
||||
const currentUrl = this.page.url();
|
||||
if (currentUrl === startingUrl) {
|
||||
await this.continueButton.click({ timeout: 1000 });
|
||||
await this.continueButton.click({ timeout: 5_000 });
|
||||
}
|
||||
//this causes the schedule page to fail
|
||||
//await expect(this.buttonLoadSpin).toHaveCount(0, {timeout: 180000});
|
||||
|
|
@ -101,7 +101,7 @@ export class BasePage {
|
|||
let referralSequenceNumber = mainSessionStorage.order.referralSequenceNumber as number;
|
||||
if (referralNumber == null) {
|
||||
for (let i = 1; i <= 20; i++) {
|
||||
if (!referralNumber == null) break;
|
||||
if (referralNumber !== null) break;
|
||||
await this.page.waitForTimeout(500);
|
||||
mainSessionStorage = JSON.parse(await this.page.evaluate('localStorage.getItem(\'main\')'));
|
||||
referralNumber = mainSessionStorage.order.referralNumber as number;
|
||||
|
|
|
|||
|
|
@ -91,9 +91,11 @@ export default defineConfig({
|
|||
baseURL: process.env.BASE_URL || 'https://selfservice.test.glassclaim.com',
|
||||
trace: 'on-first-retry',
|
||||
headless: process.env.CI ? true : false,
|
||||
video: 'retain-on-failure',
|
||||
viewport: { width: 1920, height: 1080 },
|
||||
screenshot: "only-on-failure",
|
||||
actionTimeout: 60_000,
|
||||
navigationTimeout: 60_000
|
||||
actionTimeout: process.env.CI ? 90_000 : 60_000,
|
||||
navigationTimeout: process.env.CI ? 90_000 : 60_000
|
||||
},
|
||||
|
||||
/* Configure projects for major browsers */
|
||||
|
|
|
|||
Loading…
Reference in a new issue