Skip to content

Fix flaky e2e test for page order values#74714

Open
Shekhar0109 wants to merge 1 commit intoWordPress:trunkfrom
Shekhar0109:fix/flaky-page-order-test
Open

Fix flaky e2e test for page order values#74714
Shekhar0109 wants to merge 1 commit intoWordPress:trunkfrom
Shekhar0109:fix/flaky-page-order-test

Conversation

@Shekhar0109
Copy link
Copy Markdown
Contributor

What?

Closes #74483

Stabilizes the E2E test should allow setting page order to zero and negative values by making the Pages UI interactions more deterministic.

Why?

The test has been reported flaky due to timing issues/timeouts in CI.

How?

  • Adds explicit waits for Pages view, layout switcher, and the row to appear.
  • Avoids reloading Site Editor for persistence check; re-opens Pages within the same session and verifies the persisted value.

Testing Instructions

  1. npm run wp-env start
  2. $env:WP_BASE_URL="http://localhost:8889"
  3. npm run test:e2e test/e2e/specs/site-editor/pages.spec.js

Testing Instructions for Keyboard

Not applicable (test-only change).

@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.

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: Shekhar0109 <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: jorgefilipecosta <[email protected]>

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

@Shekhar0109
Copy link
Copy Markdown
Contributor Author

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Jan 17, 2026
@github-actions
Copy link
Copy Markdown

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @Shekhar0109! In case you missed it, we'd love to have you join us in our Slack community.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Flaky Test] should allow setting page order to zero and negative values

1 participant