diff options
-rw-r--r-- | tests/example.spec.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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(); }); |