Commit d788ddf8279 for woocommerce
commit d788ddf8279c8edf5e5d7db55067cbbdf8b79d15
Author: Vlad Olaru <vlad.olaru@automattic.com>
Date: Wed Jul 15 15:30:46 2026 +0300
[e2e] Reduce Site Editor navigation timeout in tests (#66609)
perf(e2e): Reduce Site Editor loader timeout
Context: Site Editor navigation allows the canvas loader to be skipped entirely.\n\nProblem: The pinned Playwright helper waited up to 60 seconds for that loader to become visible before using its existing fallback.\n\nSolution: Backport the three-second visible wait while preserving the 60-second hidden wait for loaders that do appear.
diff --git a/bin/patches/@wordpress__e2e-test-utils-playwright@1.33.2.patch b/bin/patches/@wordpress__e2e-test-utils-playwright@1.33.2.patch
new file mode 100644
index 00000000000..99f0f0cdea7
--- /dev/null
+++ b/bin/patches/@wordpress__e2e-test-utils-playwright@1.33.2.patch
@@ -0,0 +1,17 @@
+diff --git a/build/admin/visit-site-editor.js b/build/admin/visit-site-editor.js
+index 8396b16ffcac2b39384ec878aa38a3eb18b6fc1f..6f851e640195973840b8919d9279d48802fd017c 100644
+--- a/build/admin/visit-site-editor.js
++++ b/build/admin/visit-site-editor.js
+@@ -52,7 +52,11 @@ async function visitSiteEditor(options = {}) {
+ ".edit-site-canvas-loader, .edit-site-canvas-spinner"
+ );
+ try {
+- await canvasLoader.waitFor({ state: "visible", timeout: 6e4 });
++ // The loader either renders within a tick or is skipped entirely, so a
++ // long visible-state timeout is wasted when it never appears.
++ // Backported from Gutenberg #77725. Remove this package patch when the
++ // minimum package catalog reaches version 1.45.0 or later.
++ await canvasLoader.waitFor({ state: "visible", timeout: 3e3 });
+ await canvasLoader.waitFor({
+ state: "hidden",
+ // Bigger timeout is needed for larger entities, like the Large Post
diff --git a/package.json b/package.json
index eb584889cc3..302aae15c56 100644
--- a/package.json
+++ b/package.json
@@ -90,7 +90,8 @@
"sass": "1.69.5"
},
"patchedDependencies": {
- "@wordpress/edit-site@5.15.0": "bin/patches/@wordpress__edit-site@5.15.0.patch"
+ "@wordpress/edit-site@5.15.0": "bin/patches/@wordpress__edit-site@5.15.0.patch",
+ "@wordpress/e2e-test-utils-playwright@1.33.2": "bin/patches/@wordpress__e2e-test-utils-playwright@1.33.2.patch"
}
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3fbe3df7b94..9ce020490ca 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -183,6 +183,9 @@ overrides:
pnpmfileChecksum: sha256-7lEtYKkj9MKUQ1wDfOySWQ01OX5tYIUQTnfpMq5epMI=
patchedDependencies:
+ '@wordpress/e2e-test-utils-playwright@1.33.2':
+ hash: 0a3df7448f0a035981fcb1ecddf9c699450bcfe7c1f6c334d6cdfea5db1e0d52
+ path: bin/patches/@wordpress__e2e-test-utils-playwright@1.33.2.patch
'@wordpress/edit-site@5.15.0':
hash: 63381743e38412fb89154386a5d169639ca10f8315407527829db669201fce9b
path: bin/patches/@wordpress__edit-site@5.15.0.patch
@@ -2631,7 +2634,7 @@ importers:
version: 6.43.1-next.v.202604091042.0
'@wordpress/e2e-test-utils-playwright':
specifier: catalog:wp-min
- version: 1.33.2(@playwright/test@1.61.1)
+ version: 1.33.2(patch_hash=0a3df7448f0a035981fcb1ecddf9c699450bcfe7c1f6c334d6cdfea5db1e0d52)(@playwright/test@1.61.1)
'@wordpress/env':
specifier: 11.9.0
version: 11.9.0(@types/node@24.12.2)
@@ -3660,7 +3663,7 @@ importers:
version: 4.33.1
'@wordpress/e2e-test-utils-playwright':
specifier: catalog:wp-min
- version: 1.33.2(@playwright/test@1.61.1)
+ version: 1.33.2(patch_hash=0a3df7448f0a035981fcb1ecddf9c699450bcfe7c1f6c334d6cdfea5db1e0d52)(@playwright/test@1.61.1)
'@wordpress/editor':
specifier: catalog:wp-min
version: 14.33.11(@date-fns/tz@1.4.1)(@emotion/is-prop-valid@1.4.0)(@types/react-dom@18.3.7(@types/react@18.3.28))(@types/react@18.3.28)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(stylelint@16.26.1(typescript@5.7.3))
@@ -35618,7 +35621,7 @@ snapshots:
- typescript
- utf-8-validate
- '@wordpress/e2e-test-utils-playwright@1.33.2(@playwright/test@1.61.1)':
+ '@wordpress/e2e-test-utils-playwright@1.33.2(patch_hash=0a3df7448f0a035981fcb1ecddf9c699450bcfe7c1f6c334d6cdfea5db1e0d52)(@playwright/test@1.61.1)':
dependencies:
'@playwright/test': 1.61.1
change-case: 4.1.2