Skip to content

Commit

Permalink
refactor: Check that login was succesful and the dashboard is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
CvdL-UM committed Oct 8, 2024
1 parent eb13e4a commit 19fc2bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lawnotation-ui/tests/setup/annotator.auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ setup('Authenticate as annotator', async ({ context, page }) => {

await page.getByRole("textbox").first().fill(magicCode);
await page.getByTestId('verify-button').click();
await delay(3000);
await page.getByText('Create new project').waitFor();
await page.getByText('Create new project').isVisible();

await page.context().storageState({ path: annotatorFile });
});
3 changes: 2 additions & 1 deletion lawnotation-ui/tests/setup/editor.auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ setup('Authenticate as editor', async ({ context, page }) => {

await page.getByRole("textbox").first().fill(magicCode);
await page.getByTestId('verify-button').click();
await delay(3000);
await page.getByText('Create new project').waitFor();
await page.getByText('Create new project').isVisible();

await page.context().storageState({ path: editorFile });
});

0 comments on commit 19fc2bc

Please sign in to comment.