Commit 313a9683271 for woocommerce
commit 313a9683271e37b77e14dd4365fc1f0bf0f5c68f
Author: iris-woocommerce[bot] <282076412+iris-woocommerce[bot]@users.noreply.github.com>
Date: Wed Dec 2 14:11:09 2026 +0200
Fix flaky post comments e2e test by targeting the post title heading (#71687)
diff --git a/plugins/woocommerce/changelog/fix-e2e-post-comments-heading b/plugins/woocommerce/changelog/fix-e2e-post-comments-heading
new file mode 100644
index 00000000000..f36eae1659e
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-e2e-post-comments-heading
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+Comment: Make the post comments e2e test target the post title heading; test-only change, nothing ships.
+
diff --git a/plugins/woocommerce/tests/e2e/tests/wp-core/post-comments.spec.ts b/plugins/woocommerce/tests/e2e/tests/wp-core/post-comments.spec.ts
index e4579815cdd..d5eef3c0659 100644
--- a/plugins/woocommerce/tests/e2e/tests/wp-core/post-comments.spec.ts
+++ b/plugins/woocommerce/tests/e2e/tests/wp-core/post-comments.spec.ts
@@ -72,6 +72,7 @@ test(
await expect(
page.getByRole( 'heading', {
name: 'Comment test post',
+ level: 1,
exact: true,
} )
).toBeVisible();