diff --git a/tests/calendar.spec.ts b/tests/calendar.spec.ts index c953548..c18e406 100644 --- a/tests/calendar.spec.ts +++ b/tests/calendar.spec.ts @@ -51,6 +51,7 @@ test.describe('Calendar', () => { ]); await page.goto('/calendar'); await page.waitForURL('/calendar'); + await page.waitForSelector('table#schedule'); const date = today.plus({ days: 3 }); await page diff --git a/tests/profile.spec.ts b/tests/profile.spec.ts index 66c318b..e40e17b 100644 --- a/tests/profile.spec.ts +++ b/tests/profile.spec.ts @@ -9,9 +9,9 @@ test.beforeEach(async ({ utils }) => { }); test('User can create new profile with valid phone number', async ({ page, context }) => { - await context.clearCookies(); await page.goto(host); await page.waitForURL(host); + await page.getByRole('textbox').fill(''); await page.getByRole('textbox').fill(phone); await page.getByRole('button').click();