Skip to content

e2e tests: Fix E2E selectors for WordPress trunk list tables - #529

Merged
priethor merged 1 commit into
trunkfrom
priethor/fix-trunk-e2e-selectors
Jul 29, 2026
Merged

e2e tests: Fix E2E selectors for WordPress trunk list tables#529
priethor merged 1 commit into
trunkfrom
priethor/fix-trunk-e2e-selectors

Conversation

@priethor

Copy link
Copy Markdown
Contributor

What

Update the E2E row-checkbox selectors to work with both the <th> markup used by released WordPress versions and the <td> markup now used by WordPress trunk.

Why

WordPress Core changed list-table checkbox cells from <th> to <td> in ae5d691. The existing element-specific selector no longer finds those checkboxes on trunk, which breaks cleanup and allows retries to accumulate duplicate records.

Testing Instructions

  • git diff --check
  • npx wp-scripts lint-js tests/e2e/import-export.spec.ts tests/e2e/options-page-admin.spec.ts tests/e2e/post-type-admin.spec.ts
  • E2E tests were not run locally.

Use of AI Tools

I used OpenAI Codex to update the selectors. I reviewed the diff and test results.

@github-actions

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.

Core Committers: Use this line as a base for the props when committing in SVN:

Props priethor.

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

@priethor priethor changed the title Fix E2E selectors for WordPress trunk list tables e2e tests: Fix E2E selectors for WordPress trunk list tables Jul 29, 2026
@priethor
priethor merged commit 8b8ef79 into trunk Jul 29, 2026
19 checks passed
@priethor
priethor deleted the priethor/fix-trunk-e2e-selectors branch July 29, 2026 13:23
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