diff options
author | Erich Eckner <git@eckner.net> | 2023-12-11 19:44:44 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-12-11 19:44:44 +0100 |
commit | 7bbb675c4dadf21991a9df7d51122811149078e6 (patch) | |
tree | b376ff36498e81d1a54d23c628c14d6497a941af | |
parent | fb296b99f2313593d3aa3660f1ff44d59f057d10 (diff) | |
download | Milchtankstelle-7bbb675c4dadf21991a9df7d51122811149078e6.tar.xz |
neuer Post -> neuer Test
-rw-r--r-- | tests/example.spec.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/example.spec.ts b/tests/example.spec.ts index fe87980..3ff5cce 100644 --- a/tests/example.spec.ts +++ b/tests/example.spec.ts @@ -5,7 +5,8 @@ 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 firstText = await first.innerHTML(); - expect(firstText.includes('Unsere Milchtankstelle ist defekt!')).toBeTruthy(); + expect(firstText.includes('Wegen Renovierungsarbeiten bleibt der Regiomat geschlossen.')).toBeTruthy(); }); |