Repository navigation
[Backport to release/11.1] e2e tests: Fix create-post e2e test against Gutenberg nightly - #67917
Merged
Merged
Conversation
gigitux
approved these changes
Aug 21, 2026
gigitux
enabled auto-merge (squash)
August 21, 2026 14:02
1 task done
Contributor
Testing GuidelinesHi @adimoldovan @gigitux , Apart from reviewing the code changes, please make sure to review the testing instructions (Guide) and verify that relevant tests (E2E, Unit, Integration, etc.) have been added or updated as needed. Reminder: PR reviewers are required to document testing performed. This includes:
|
1 of 15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is a cherry-pick of #67803 to
release/11.1.Original PR Description
Changes proposed in this Pull Request:
The nightly Gutenberg e2e job has failed on
create-post.spec.tssince 12 August. Gutenberg WordPress/gutenberg#81231 replaced the default block appender with a real empty paragraph block. The element keeps the accessible nameAdd default block, but its role changed frombuttontodocument. The test asked for the button role, so its locator matched nothing and timed out.The test now matches by label:
create-page.spec.tsandproducts.block_theme.spec.tsalready do this, after an earlier appender change in #53100.create-post.spec.tswas the last one still asking for the button role.How to test the changes in this Pull Request:
pnpm --filter=@woocommerce/plugin-woocommerce build.pnpm --filter=@woocommerce/plugin-woocommerce env:e2e.pnpm --filter=@woocommerce/plugin-woocommerce test:e2e:gb-nightly tests/wp-core/create-post.spec.ts. It passes. Ontrunkit fails atcreate-post.spec.ts:33withTimeoutError: locator.click: Timeout 20000ms exceeded.pnpm --filter=@woocommerce/plugin-woocommerce test:e2e:gb-stable tests/wp-core/create-post.spec.ts. It still passes.Tested: https://github.com/woocommerce/woocommerce/actions/runs/32123269803
Milestone
Automatically assign milestone for the next WooCommerce version