From 7bbb675c4dadf21991a9df7d51122811149078e6 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 11 Dec 2023 19:44:44 +0100 Subject: neuer Post -> neuer Test --- tests/example.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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(); }); -- cgit v1.2.3-70-g09d2