diff options
Diffstat (limited to 'tests/example.spec.ts')
-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(); }); |