Skip to content

Skip Command Palette e2e tests on older WP versions#404

Merged
ockham merged 8 commits intotrunkfrom
update/skip-command-palette-e2e-tests-in-older-wp-versions
Apr 9, 2026
Merged

Skip Command Palette e2e tests on older WP versions#404
ockham merged 8 commits intotrunkfrom
update/skip-command-palette-e2e-tests-in-older-wp-versions

Conversation

@ockham
Copy link
Copy Markdown
Contributor

@ockham ockham commented Apr 8, 2026

E2E tests are currently run against WP 6.2 upon commit to trunk. Command Palette tests are failing, as the Command Palette was only introduced in WP 6.3. We thus need to skip those tests on older WP versions.

Additionally, this PR makes the test more resilient against minor copy changes across versions that would previously cause tests to fail.

Use of AI Tools

Claude Code was used to select the command palette input field in a label-agnostic way that would work across different WP versions.

@ockham ockham self-assigned this Apr 8, 2026
await page.keyboard.press( 'ControlOrMeta+k' );

const input = page.getByRole( 'combobox', {
name: 'Search commands and settings',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This used to be Type a command or search in WP 6.3, so a label-agnostic way of locating the input field was needed.

@ockham ockham marked this pull request as ready for review April 9, 2026 14:08
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

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 bernhard-reiter.

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

@ockham ockham merged commit fa30d08 into trunk Apr 9, 2026
18 of 20 checks passed
@ockham ockham deleted the update/skip-command-palette-e2e-tests-in-older-wp-versions branch April 9, 2026 14:40
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