From 4789864de0797b83cc8e1354adf21861e37740a5 Mon Sep 17 00:00:00 2001 From: moshe vilner Date: Sun, 24 Dec 2023 18:00:33 +0200 Subject: [PATCH] chore: resotre timestamp page test --- tests/realtimemap.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/realtimemap.spec.ts b/tests/realtimemap.spec.ts index 5a454e999..5171b8527 100644 --- a/tests/realtimemap.spec.ts +++ b/tests/realtimemap.spec.ts @@ -1,9 +1,12 @@ import { test } from '@playwright/test' + test('realtime-map page', async ({ page }) => { await page.goto('/') await page.getByText('מפה בזמן אמת', { exact: true }).click() await page.waitForURL(/map/) await page.getByRole('progressbar').waitFor({ state: 'hidden' }) - await page.getByLabel('תאריך').fill(new Date().toLocaleDateString('en-GB')) + await page.getByLabel('בחירת תאריך').nth(1).waitFor({ state: 'detached' }) + await page.getByLabel('בחירת תאריך').click() + await page.getByRole('gridcell', { name: '1', exact: true }).click() await page.getByLabel('דקות').fill('6') })