Skip to content

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

Open
Khushi (khushi-git-7) wants to merge 1 commit into
microsoft:mainfrom
khushi-git-7:test/attack-row-reopen-escape
Open

Khushi (khushi-git-7) wants to merge 1 commit 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

This branch has not been deployed

No deployments
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.

2 participants