From f780b52a81e7b78070a3d44c4b6b28db4259b7ef Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 8 Jul 2024 14:24:57 +0200 Subject: role vanished --- tests/example.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/example.spec.ts b/tests/example.spec.ts index 8a97462..4a61349 100644 --- a/tests/example.spec.ts +++ b/tests/example.spec.ts @@ -6,7 +6,7 @@ test('Milchtankstelle', async ({ page }) => { await page.getByRole('button', {name: 'Decline optional cookies'}).click(); await page.getByRole('button', {name: 'Close'}).click(); - let first = await page.$('xpath=//div[@role="article" and @aria-posinset="1"]'); + let first = await page.$('xpath=//div[@aria-posinset="1"]'); let firstText = await first.innerHTML(); expect(firstText.includes('Endlich können wir Ihnen ab 23.12 .2023 10:00 Uhr wieder frische Milch anbieten.')).toBeTruthy(); }); -- cgit v1.2.3-70-g09d2