Commit 8ddf51baae for woocommerce
commit 8ddf51baae56b526c505c21902d4312d4db33cc7
Author: Thomas Roberts <5656702+opr@users.noreply.github.com>
Date: Wed Jan 7 13:23:29 2026 +0000
Try increasing timeout on template search to prevent flakiness (#62577)
Try increasing timeout on template search
Co-authored-by: Raluca Stan <ralucastn@gmail.com>
diff --git a/plugins/woocommerce/client/blocks/tests/e2e/utils/editor/editor-utils.page.ts b/plugins/woocommerce/client/blocks/tests/e2e/utils/editor/editor-utils.page.ts
index 79245e4a2d..6c83d88a36 100644
--- a/plugins/woocommerce/client/blocks/tests/e2e/utils/editor/editor-utils.page.ts
+++ b/plugins/woocommerce/client/blocks/tests/e2e/utils/editor/editor-utils.page.ts
@@ -134,12 +134,12 @@ export class Editor extends CoreEditor {
// Using expect.poll() for a retrying assertion since toHaveCount
// requires an exact number.
await expect
- .poll( () => templateCards.count(), { timeout: 3000 } )
+ .poll( () => templateCards.count(), { timeout: 5000 } )
.toBeLessThan( templatesBeforeSearch );
}
/**
- * Opens a template or template part in the Site Editor given it's name.
+ * Opens a template or template part in the Site Editor given its name.
*/
async openTemplate( { templateName }: { templateName: string } ) {
const templateButton = this.page