commit 38ac2e5ba7e025f1b7700d9f5674dddf0ce30095
Author: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Date: Tue Aug 18 13:34:08 2026 +0300
e2e tests: Fix create-post e2e test against Gutenberg nightly (#67803)
diff --git a/plugins/woocommerce/changelog/fix-gb-nightly-create-post-appender b/plugins/woocommerce/changelog/fix-gb-nightly-create-post-appender
new file mode 100644
index 00000000000..530cd9b23ea
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-gb-nightly-create-post-appender
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Fix the create-post e2e test against Gutenberg nightly, where the default block appender no longer exposes the button role.
diff --git a/plugins/woocommerce/tests/e2e/tests/wp-core/create-post.spec.ts b/plugins/woocommerce/tests/e2e/tests/wp-core/create-post.spec.ts
index dfed8b7454f..ee55d226125 100644
--- a/plugins/woocommerce/tests/e2e/tests/wp-core/create-post.spec.ts
+++ b/plugins/woocommerce/tests/e2e/tests/wp-core/create-post.spec.ts
@@ -29,9 +29,7 @@ test.describe(
const canvas = await getCanvas( page );
- await canvas
- .getByRole( 'button', { name: 'Add default block' } )
- .click();
+ await canvas.getByLabel( /Add default block|Empty block/ ).click();
await canvas
.getByRole( 'document', {