From 00cb418f4d9e429c391f5c8bd90d1c584c894424 Mon Sep 17 00:00:00 2001 From: Sebastian Reck Date: Tue, 14 Jan 2025 16:58:37 +0100 Subject: [PATCH] add e2e expectation to redirect to StartPage when abgabe is clicked --- frontend/e2e/StartPage.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/e2e/StartPage.spec.ts b/frontend/e2e/StartPage.spec.ts index 7e8e2df..c739f17 100644 --- a/frontend/e2e/StartPage.spec.ts +++ b/frontend/e2e/StartPage.spec.ts @@ -14,5 +14,9 @@ test( await expect(page.getByText('BSG')).toHaveCount(1) await expect(page.getByText('Übersicht Verwaltungsvorschriften')).toHaveCount(1) await expect(page.getByText('Neue Dokumentationseinheit')).toHaveCount(1) + await page.getByText('Neue Dokumentationseinheit').click() + + // this needs to change when KSNR are generated dynamically + await expect(page).toHaveURL('/documentUnit/KSNR054920707/fundstellen') }, )