feat: improve tests

This commit is contained in:
pit
2023-09-26 16:19:26 +01:00
parent fba38f7b02
commit 86dddb8a4d
9 changed files with 72 additions and 36 deletions

View File

@ -29,6 +29,9 @@ test('user can sign up with email and password', async ({ page }: { page: Page }
}
await page.getByRole('button', { name: 'Sign Up' }).click();
await page.waitForURL('/documents');
await expect(page).toHaveURL('/documents');
});
test('user can login with user and password', async ({ page }: { page: Page }) => {
@ -37,5 +40,6 @@ test('user can login with user and password', async ({ page }: { page: Page }) =
await page.getByLabel('Password').fill(password);
await page.getByRole('button', { name: 'Sign In' }).click();
await page.waitForURL('/documents');
await expect(page).toHaveURL('/documents');
});