From 60b9a4dbba19fe616ce6731ae441f722a84768ad Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 22 Jan 2024 20:55:05 +0100 Subject: [PATCH] adapt unit tests to account for new redirect --- frontend/tests/cox.spec.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frontend/tests/cox.spec.ts b/frontend/tests/cox.spec.ts index 11f14d2..b5c8637 100644 --- a/frontend/tests/cox.spec.ts +++ b/frontend/tests/cox.spec.ts @@ -15,7 +15,6 @@ test('cox can create and delete trip', async ({ page }) => { await page.locator('#sidebar #planned_starting_time').press('Tab'); await page.getByRole('spinbutton').fill('5'); await page.getByRole('button', { name: 'Erstellen', exact: true }).click(); - await page.getByRole('link', { name: 'Geplante Ausfahrten' }).click(); await expect(page.locator('body')).toContainText('18:00 Uhr (cox) Details'); await page.goto('http://localhost:8000/planned'); @@ -57,7 +56,6 @@ test.describe('cox can edit trips', () => { await sharedPage.locator('#sidebar #notes').click(); await sharedPage.locator('#sidebar #notes').fill('Meine Anmerkung'); await sharedPage.getByRole('button', { name: 'Speichern' }).click(); - await sharedPage.getByRole('link', { name: 'Geplante Ausfahrten' }).click(); await sharedPage.getByRole('link', { name: 'Details' }).click(); await expect(sharedPage.locator('#sidebar')).toContainText('Meine Anmerkung'); @@ -94,7 +92,6 @@ test.describe('cox can edit trips', () => { await sharedPage.getByRole('spinbutton').fill('3'); await sharedPage.getByRole('button', { name: 'Speichern' }).click(); await expect(sharedPage.locator('body')).toContainText('Ausfahrt erfolgreich aktualisiert.'); - await sharedPage.getByRole('link', { name: 'Geplante Ausfahrten' }).click(); }); test('call off trip', async () => { @@ -105,7 +102,6 @@ test.describe('cox can edit trips', () => { await sharedPage.getByRole('spinbutton').fill('0'); await sharedPage.getByRole('button', { name: 'Speichern' }).click(); await expect(sharedPage.locator('body')).toContainText('Ausfahrt erfolgreich aktualisiert.'); - await sharedPage.getByRole('link', { name: 'Geplante Ausfahrten' }).click(); await expect(sharedPage.locator('body')).toContainText('(Absage cox )'); });