Skip to content

TEST: Cover reopening attack details from the row and closing with Escape - #4434

Merged
jbolor21 merged 2 commits into
microsoft:mainfrom
khushi-git-7:test/attack-row-reopen-escape
Nov 25, 2026
Merged

jbolor21 merged 2 commits into
microsoft:mainfrom
khushi-git-7:test/attack-row-reopen-escape

Conversation

@khushi-git-7

Copy link
Copy Markdown
Contributor

Description

Follow-up to #4191, covering the case Roman Lutz (@romanlutz) pointed out is still untested on current main: reopening attack details from the row by click and closing them with Escape returns focus to the row.

  • Extends the existing Escape test for the attack row: after the first close it reopens the details by click, closes with Escape again and checks focus is back on the row, mirroring the objective opener's "after Escape and on reopening" test. It also waits for the dialog to be gone before each focus check.
  • No change to app code.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the test-only change extending focus-restoration coverage to reopened attack details.

No open issues 🎉

What changed in this PR

Extends the scenario run page’s focus-restoration regression test to cover reopening attack details from the attack row. No application code changes.

Changes:

  • Reopens attack details by clicking the row, dismisses them with Escape, and verifies focus returns to the row.
  • Waits for the dialog to disappear before each focus assertion and updates the test name to reflect reopening coverage.
File Description
frontend/​src/​components/​Scenarios/​ScenarioRunPage.test.tsx Extends the attack-row Escape test with reopening and focus-restoration checks.

Review effort: Balanced

@jbolor21 jbolor21 self-assigned this Nov 24, 2026

@jbolor21 jbolor21 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great thanks!

@jbolor21
jbolor21 enabled auto-merge November 25, 2026 17:02
@jbolor21
jbolor21 added this pull request to the merge queue Nov 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 25, 2026
@jbolor21
jbolor21 added this pull request to the merge queue Nov 25, 2026
Merged via the queue into microsoft:main with commit 388c577 Nov 25, 2026
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants