Skip to content

Repair wp/5.9 branch Actions: Set user fields directly in the createUser() e2e utility - #681

Closed
desrosj wants to merge 1 commit into
fix-actions-5.9/fix-block-editor-current-screen-nullfrom
fix-actions-5.9/fix-create-user-field-typing
Closed

desrosj wants to merge 1 commit into
fix-actions-5.9/fix-block-editor-current-screen-nullfrom
fix-actions-5.9/fix-create-user-field-typing

Conversation

@desrosj

@desrosj desrosj commented Oct 8, 2026

Copy link
Copy Markdown
Owner

What?

Backports WordPress#37469 (WordPress@3ffbbd0) to wp/5.9. The createUser() e2e utility (packages/e2e-test-utils/src/create-user.js) now sets the user login, email, first name and last name fields on user-new.php with page.$eval() instead of typing them with page.type().

Why?

page.type() enters one character at a time, and focus sometimes leaves the field before it finishes, so the user is created with a truncated login or without a first or last name. The autocomplete mentions tests create their testuser ("Jane Doe") user once in beforeAll, so retries can't recover, and they fail in two ways on this branch:

Across 36 Admin - 4 jobs on this stack between 2026-10-06 and 2026-10-08, the mentions tests failed in 13. wp/6.0 and newer already include WordPress#37469.

How?

A straight cherry-pick of the trunk commit. It applied cleanly.

Use of AI Tools

This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.

🤖 Generated with Claude Code

@desrosj desrosj self-assigned this Oct 8, 2026
@desrosj
desrosj added this pull request to stack #668 October 8, 2026 03:20
@desrosj
desrosj force-pushed the fix-actions-5.9/fix-create-user-field-typing branch from ce09202 to a9da226 Compare October 8, 2026 18:17
@desrosj
desrosj removed this pull request from stack #668 October 8, 2026 19:35
@desrosj
desrosj force-pushed the fix-actions-5.9/fix-create-user-field-typing branch from a9da226 to 771c1cf Compare October 8, 2026 19:35
@desrosj
desrosj added this pull request to stack #695 October 8, 2026 19:35
@desrosj
desrosj marked this pull request as ready for review October 9, 2026 16:40
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <desrosj@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@desrosj

desrosj commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

Moved to WordPress#84425.

@desrosj desrosj closed this Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant