Skip to content

test(console): wait for enabled controls in the agent logs and overview tests - #3169

Merged
freeqaz merged 1 commit into
mainfrom
harden-2116b
Oct 22, 2026
Merged

freeqaz merged 1 commit into
mainfrom
harden-2116b

Conversation

@freeqaz

@freeqaz freeqaz commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Problem

#3167 moved one-shot "expect enabled" reads that follow a wait onto the shared waitForEnabled helper, but left console-agent-logs.test.mjs and console-agent-overview.test.mjs alone while another change was editing them. Both files still read a control's enabled state once right after waiting for some text, so under load the read can see the state from just before the page settles.

Change

  • console-agent-logs.test.mjs: the two #runtime-log-source reads after the log text appears (first visit and the reopened Logs tab) use waitForEnabled.
  • console-agent-overview.test.mjs: the Share Agent Principal ID input after "Current policy loaded.", the version button before and after a held share, and Deploy on the draft next-step card use waitForEnabled.
  • Kept one-shot: the Refresh read while a quiet poll is held (it asserts that moment), and every "disabled" read.

Verification

  • Both files 20/20 at 2 CPUs on a remote test VM (10 at a time, private loopback-only network namespace like the browser lanes).
  • eslint and prettier clean on the two files.

Risks

Test-only. A wait for "enabled" would also pass if a control flickered disabled and back; the moved reads follow a wait for a settled state, and the reads that assert a moment stay one-shot.

…ew tests

Six one-shot expect-enabled reads that follow a wait move onto the shared
waitForEnabled helper (finding 2116 leftovers). The Refresh read during a
held poll stays one-shot: it asserts a moment.
@freeqaz
freeqaz requested a review from a team as a code owner October 22, 2026 03:13
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@freeqaz
freeqaz merged commit 8d6bcfe into main Oct 22, 2026
21 checks passed
@freeqaz
freeqaz deleted the harden-2116b branch October 22, 2026 03:16
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.

1 participant