From 01f90d90b0e2dceb5700c81752e12bf841f95080 Mon Sep 17 00:00:00 2001 From: Jessica Ho Date: Wed, 28 Feb 2024 03:21:49 +0000 Subject: [PATCH] try to fix tests --- tests/calendar.spec.ts | 1 + tests/profile.spec.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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();