Skip to content

Commit 685e59f

Browse files
romanlutzCopilot
andauthored
FIX: Collapse scenario atomic attack groups by default (#2707)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 0ce6cce commit 685e59f

4 files changed

Lines changed: 452 additions & 80 deletions

File tree

‎doc/gui/0_gui.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ Click any row to open the attack in the Chat view.
179179

180180
Results are paginated (25 per page) with "First" and "Next" navigation buttons.
181181

182+
### Scenario Run Results
183+
184+
In active runs and saved scenario results, **Atomic attack groups** defaults to expanded for up to 20 group summaries and collapsed for more than 20, with group and execution counts always visible. Select **Expand** to show all group summaries or **Collapse** to hide the list. Individual groups start collapsed; expand one to inspect its executions and open attack details or conversation links.
185+
186+
Until you expand or collapse the section, its default follows the current group count as progress loads. Once you choose, the section keeps your choice during progress updates for the same run, even if the count crosses 20. Opening a different run resets to that run's count-based default.
187+
182188
### Target Configuration
183189

184190
The Configuration view manages the targets available for attacks.

‎frontend/e2e/scenario-history.spec.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,12 @@ test.describe("Scenario catalog, history, and live run routing", () => {
650650
await page.reload();
651651
await expect(page).toHaveURL(`/scanner-history/${RUN_ID}`);
652652
await expect(page.getByRole("heading", { name: SCENARIO_NAME })).toBeVisible();
653-
await page.getByRole("button", { name: "Expand attacks in Prompt sending" }).click();
653+
const atomicGroupsToggle = page.getByRole("button", { name: /atomic attack groups$/ });
654+
await expect(atomicGroupsToggle).toHaveAttribute("aria-expanded", "true");
655+
const groupToggle = page.getByRole("button", { name: "Expand attacks in Prompt sending" });
656+
await expect(groupToggle).toBeVisible();
657+
await expect(groupToggle).toHaveAttribute("aria-expanded", "false");
658+
await groupToggle.click();
654659
const attemptRow = page.getByRole("row", { name: "View details for prompt_sending" });
655660
await attemptRow.click();
656661
await expect(page).toHaveURL(`/scanner-history/${RUN_ID}/${ATTACK_ID}`);

0 commit comments

Comments
 (0)