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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user