test(e2e): align assertions with i18n fix — French→English labels

- us7: "Nouvelle simulation" → "New simulation" (3 assertions)
- us4: "Nouvelle simulation" → "New simulation" (1 assertion)
- us9: "Simulation pas encore en revue" → "Simulation not yet ready for review" (1 assertion)
- us11: "Marquer en revue" → "Mark for review" (6 assertions), "Clôturer" → /^close$/i (7 assertions)
- us12: "Supprimer" → /^delete$/i (4 assertions), "Supprimer la simulation" → "Delete simulation" (1 assertion)

No other French strings found in e2e/tests/. Suite: 68/68 pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Knacky
2026-05-26 16:13:33 +02:00
parent 2a7d27bf02
commit da2ce68660
5 changed files with 29 additions and 29 deletions

View File

@@ -156,15 +156,15 @@ test.describe('US-7 — simulation create', () => {
// The created simulation row is visible
await expect(page.getByRole('row', { name: /Visible sim/i })).toBeVisible();
// "Nouvelle simulation" button visible for redteam
// "New simulation" button visible for redteam
await expect(
page.getByRole('link', { name: /nouvelle simulation/i }),
page.getByRole('link', { name: /new simulation/i }),
).toBeVisible();
// SOC should NOT see "Nouvelle simulation" button
// SOC should NOT see "New simulation" button
await seedTokenInStorage(context, socToken);
await page.goto(`/engagements/${engagementId}`);
await expect(page.getByRole('link', { name: /nouvelle simulation/i })).toHaveCount(0);
await expect(page.getByRole('link', { name: /new simulation/i })).toHaveCount(0);
await deleteSimulation(redteamToken, sim.id);
});