Skip to content

Commit

Permalink
Increase timeout on new-user invitation test
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Apr 23, 2024
1 parent 95d5b40 commit 76ef56e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/tests/emailWorkflow.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TEST_TIMEOUT_1_5X, defaultPassword } from './envVars';
import { TEST_TIMEOUT_2X, defaultPassword } from './envVars';
import { deleteUser, getCurrentUserId, loginAs, logout } from './utils/authHelpers';

import { AdminDashboardPage } from './pages/adminDashboardPage';
Expand Down Expand Up @@ -113,7 +113,7 @@ test('forgot password', async ({ page, tempUser }) => {
});

test('register via new-user invitation email', async ({ page }) => {
test.setTimeout(TEST_TIMEOUT_1_5X);
test.setTimeout(TEST_TIMEOUT_2X);

await loginAs(page.request, 'admin', defaultPassword);
const adminPage = await new AdminDashboardPage(page).goto();
Expand Down
2 changes: 1 addition & 1 deletion frontend/tests/envVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const authCookieName = '.LexBoxAuth';
export const invalidJwt = 'eyJhbGciOiJIUzI1NiJ9.eyJSb2xlIjoiQWRtaW4iLCJJc3N1ZXIiOiJJc3N1ZXIiLCJVc2VybmFtZSI6IkphdmFJblVzZSIsImV4cCI6MTY5OTM0ODY2NywiaWF0IjoxNjk5MzQ4NjY3fQ.f8N63gcD_iv-E_x0ERhJwARaBKnZnORaZGe0N2J0VGM';

export const TEST_TIMEOUT = 30_000;
export const TEST_TIMEOUT_1_5X = TEST_TIMEOUT * 1.5;
export const TEST_TIMEOUT_2X = TEST_TIMEOUT * 2;

export enum HgProtocol {
Hgweb,
Expand Down

0 comments on commit 76ef56e

Please sign in to comment.