diff --git a/tests/e2e/utils/product-editor.js b/tests/e2e/utils/product-editor.js index 887e52dbed..25b5e94474 100644 --- a/tests/e2e/utils/product-editor.js +++ b/tests/e2e/utils/product-editor.js @@ -431,6 +431,9 @@ export function getProductBlockEditorUtils( page ) { }, async getAvailableProductAttributesWithTestValues() { + // Avoiding tests may start to get locators before they are rendered, + // leading to random failures. + await this.getProductAttributesHeading().waitFor(); return getAvailableProductAttributesWithTestValues( page, this.getDateAndTimeFields