From 54e90f78bba7ec2d4c0eeea488197dbbd717db85 Mon Sep 17 00:00:00 2001 From: Knacky Date: Tue, 26 May 2026 11:37:51 +0200 Subject: [PATCH] =?UTF-8?q?test(e2e):=20refresh=20us4=20AC-4.9=20=E2=80=94?= =?UTF-8?q?=20placeholder=20replaced=20by=20SimulationList=20(sprint=202)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sprint 2 SimulationList component replaced the "Simulations à venir au Sprint 2" placeholder. AC-4.9 now asserts the Simulations heading and the "Nouvelle simulation" button are visible for redteam, in line with AC-7.5. Co-Authored-By: Claude Sonnet 4.6 --- e2e/tests/us4-engagements.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/e2e/tests/us4-engagements.spec.ts b/e2e/tests/us4-engagements.spec.ts index 338a468..26e45a7 100644 --- a/e2e/tests/us4-engagements.spec.ts +++ b/e2e/tests/us4-engagements.spec.ts @@ -251,7 +251,7 @@ test.describe('US-4 — engagement CRUD', () => { await expect(page.getByRole('heading', { name: /UI form test \(edited\)/i })).toBeVisible(); }); - test('AC-4.9 — /engagements/ detail page shows Sprint 2 placeholder', async ({ + test('AC-4.9 — /engagements/ detail page shows Simulations section (sprint 2 replaced placeholder)', async ({ page, context, }) => { @@ -263,8 +263,11 @@ test.describe('US-4 — engagement CRUD', () => { await seedTokenInStorage(context, redteamToken); await page.goto(`/engagements/${seeded.id}`); await expect(page.getByRole('heading', { name: /AC-4.9 detail target/i })).toBeVisible(); + // Sprint 2 replaced the placeholder with the real SimulationList — covered by AC-7.5. + await expect(page.getByRole('heading', { name: /simulations/i })).toBeVisible(); + // admin/redteam see the "Nouvelle simulation" button await expect( - page.getByText(/simulations à venir au sprint 2/i), + page.getByRole('link', { name: /nouvelle simulation/i }), ).toBeVisible(); }); });