diff options
author | Erich Eckner <git@eckner.net> | 2024-07-08 14:24:57 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2024-07-08 14:24:57 +0200 |
commit | f780b52a81e7b78070a3d44c4b6b28db4259b7ef (patch) | |
tree | 176739ec4f2e560928b396d29d4667fc6af3e85d /tests | |
parent | ef3378ba8385520c0dc75013162ea79196d6d4f5 (diff) | |
download | Milchtankstelle-master.tar.xz |
Diffstat (limited to 'tests')
-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(); }); |