Skip to content

Commit 2e23d5c

Browse files
committed
test: view might take longer to load
1 parent 4e6d1cf commit 2e23d5c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

features/stepDefinitions/browserView.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { ApplicationWorld } from './application';
55

66
// Backoff configuration for retries
77
const BACKOFF_OPTIONS = {
8-
numOfAttempts: 8,
8+
numOfAttempts: 10,
99
startingDelay: 100,
1010
timeMultiple: 2,
1111
};
@@ -60,7 +60,7 @@ Then('I should see {string} in the browser view DOM', async function(this: Appli
6060
});
6161
});
6262

63-
Then('the browser view should be loaded and visible', async function(this: ApplicationWorld) {
63+
Then('the browser view should be loaded and visible', { timeout: 15000 }, async function(this: ApplicationWorld) {
6464
if (!this.app) {
6565
throw new Error('Application not launched');
6666
}
@@ -76,7 +76,7 @@ Then('the browser view should be loaded and visible', async function(this: Appli
7676
throw new Error('Browser view not loaded');
7777
}
7878
},
79-
BACKOFF_OPTIONS,
79+
{ ...BACKOFF_OPTIONS, numOfAttempts: 15 },
8080
).catch(() => {
8181
throw new Error('Browser view is not loaded or visible after multiple attempts');
8282
});

0 commit comments

Comments
 (0)