Skip to content

Commit 39f331c

Browse files
test: increase timeout for TC-2752 [WPB-22420] (#21139)
The test waits 60s for the app lock modal to appear, this narrows the time left for the test itself to only 30s which is not enough in case the login takes a bit longer.
1 parent bb59a2f commit 39f331c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/webapp/test/e2e_tests/specs/AppLock/AppLock.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ test.describe('AppLock', () => {
7070
).forEach(({title, tag}) => {
7171
const shouldLock = tag === '@TC-2752';
7272

73-
test(title, {tag: [tag, '@regression']}, async ({createPage}) => {
73+
test(title, {tag: [tag, '@regression']}, async ({createPage}, testInfo) => {
74+
// Increase test timeout by 61s in case it needs to wait for the app to lock
75+
if (shouldLock) test.setTimeout(testInfo.timeout + 61_000);
76+
7477
const page = await createPage(withLogin(memberA));
7578
const pageManager = PageManager.from(page);
7679
await handleAppLockState(pageManager, appLockPassCode);

0 commit comments

Comments
 (0)