Skip to content

584 Stop forcing radio and checkbox clicks in the E2E tests - #638

Merged
dfe-lance merged 3 commits into
mainfrom
584-e2e-unforced-clicks
Oct 19, 2026
Merged

dfe-lance merged 3 commits into
mainfrom
584-e2e-unforced-clicks

Conversation

@dfe-lance

Copy link
Copy Markdown
Contributor

Fixes #584

A forced click skips Playwright's wait for the element to settle, so straight after a navigation it
can miss and fail the test with "Clicking the checkbox did not change its state". The first case was
fixed in #595; this removes the rest.

  • All 32 forced CheckAsync calls in the E2E tests are now ordinary clicks. GOV.UK radios and
    checkboxes take an ordinary click.
  • A unit test fails if a forced click is added to the E2E tests again, naming the file and line.
  • The content staging import test now chooses its file through the upload control's input. #380 File uploads use the GOV.UK enhanced control so Dragon users can choose a file #632
    moved the bundle id onto the enhanced control's button, which broke this test on main.

Tested: E2E 356 (three full runs, all passed), Unit 7267 and Integration 1069 passed.

A forced click skips the wait for the element to settle, so straight after a
navigation it can miss and fail with "Clicking the checkbox did not change its
state". A unit test now fails if one is added back.

Refs #584
The content staging upload became the enhanced control, which puts the bundle id
on its button, so the import problems test could not set the file.

Refs #584
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Review app for PR 638 was deleted

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

E2E tests passed

358 passed, 0 failed, 2 skipped in 19 min 30 s

Commit 1cf820e against https://check-performance-data-pr-638.test.teacherservices.cloud (run)

@dfe-lance
dfe-lance merged commit bb338f6 into main Oct 19, 2026
17 checks passed
@dfe-lance
dfe-lance deleted the 584-e2e-unforced-clicks branch October 19, 2026 11:21

This branch was successfully deployed

1 active deployment
review — 1cf820ee Deployed Oct 19, 2026 by dfe-lance via Delete Review App 638 #340
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working deploy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

E2E: choosing a radio button sometimes fails with "Clicking the checkbox did not change its state"

2 participants