test(e2e): refresh us4 AC-4.9 — placeholder replaced by SimulationList (sprint 2)
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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/<id> detail page shows Sprint 2 placeholder', async ({
|
||||
test('AC-4.9 — /engagements/<id> 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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user