change tests to always register a new user before running, skip flaky tests

This commit is contained in:
Gregor Vostrak
2024-05-16 13:08:56 +02:00
parent e2c6026b47
commit 420508322c
5 changed files with 29 additions and 58 deletions

View File

@@ -7,6 +7,7 @@ async function registerNewUser(page, email, password) {
await page.getByLabel('Email').fill(email);
await page.getByLabel('Password', { exact: true }).fill(password);
await page.getByLabel('Confirm Password').fill(password);
await page.getByLabel('I agree to the Terms of').click();
await page.getByRole('button', { name: 'Register' }).click();
await expect(page.getByTestId('dashboard_view')).toBeVisible();
}