Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/e2e/accessibility.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ test.describe("Accessibility", () => {
);

const views = [
{ button: "Attack History", heading: "Attack History" },
{ button: "History", heading: "History" },
{ button: "Targets", heading: "Target Configuration" },
{ button: "Chat", heading: "Chat" },
];
Expand Down
4 changes: 2 additions & 2 deletions frontend/e2e/converters.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ test.describe("Converter Panel", () => {
await expect(page.getByText(/Mock response for:/)).toBeVisible({ timeout: 15000 });

// Navigate to History view
await page.getByTitle("Attack History").click();
await page.getByTitle("History").click();

// Converter badge should appear in the attack table
await expect(page.getByText("Base64Converter")).toBeVisible({ timeout: 10000 });
Expand Down Expand Up @@ -565,7 +565,7 @@ test.describe("Converter Panel", () => {

test("should show converter type in history filter options", async ({ page }) => {
// Navigate to History view
await page.getByTitle("Attack History").click();
await page.getByTitle("History").click();

// The converter badge should be visible in the attack table
await expect(page.getByText("Base64Converter")).toBeVisible({ timeout: 10000 });
Expand Down
2 changes: 1 addition & 1 deletion frontend/e2e/flows.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ async function openAttackInHistory(
page: Page,
attackResultId: string,
): Promise<void> {
await page.getByTitle("Attack History").click();
await page.getByTitle("History").click();
await expect(page.getByTestId("attacks-table")).toBeVisible({
timeout: 10_000,
});
Expand Down
4 changes: 2 additions & 2 deletions frontend/e2e/history.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ async function mockHistoryAPIs(
/** Navigate to the Attack History view. */
async function goToHistory(page: Page) {
await page.goto("/");
await page.getByTitle("Attack History").click();
await page.getByTitle("History").click();
await expect(page.getByTestId("attacks-table")).toBeVisible({ timeout: 10_000 });
}

Expand Down Expand Up @@ -371,7 +371,7 @@ test.describe("Attack History empty state", () => {
await expect(page.getByRole("heading", { level: 1, name: "Target Configuration" })).toBeVisible();

await page.goBack();
await expect(page).toHaveURL(/\/history$/);
await expect(page).toHaveURL(/\/history\/attacks$/);
await expect(page.getByRole("button", { name: "Configure target" })).toBeVisible();
});
});
6 changes: 3 additions & 3 deletions frontend/e2e/routing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ test.describe("URL-driven routing", () => {
await expect(page).toHaveURL(/\/attacks\/atk-success$/);

await page.goBack();
await expect(page).toHaveURL(/\/history$/);
await expect(page).toHaveURL(/\/history\/attacks$/);
await expect(page.getByTestId("attacks-table")).toBeVisible();
});

Expand All @@ -296,8 +296,8 @@ test.describe("URL-driven routing", () => {
)
.toBe("markdown");

await page.getByTitle("Attack History").click();
await expect(page).toHaveURL(/\/history$/);
await page.getByTitle("History").click();
await expect(page).toHaveURL(/\/history\/attacks$/);
await expect(page.getByTestId("attacks-table")).toBeVisible();

await page.getByTitle("Chat").click();
Expand Down
Loading
Loading