From 54b27ca36ee3c67b65c591a02f1703154e23efbd Mon Sep 17 00:00:00 2001 From: Julia Amosova Date: Thu, 13 Feb 2020 17:24:13 +0000 Subject: [PATCH] Add waiting for 2 seconds before variations notice appear --- .../specs/wp-admin/wp-admin-product-variable-new.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/e2e-tests/specs/wp-admin/wp-admin-product-variable-new.test.js b/tests/e2e-tests/specs/wp-admin/wp-admin-product-variable-new.test.js index 16f38404807..195dad1556a 100644 --- a/tests/e2e-tests/specs/wp-admin/wp-admin-product-variable-new.test.js +++ b/tests/e2e-tests/specs/wp-admin/wp-admin-product-variable-new.test.js @@ -74,6 +74,7 @@ describe( 'Add New Variable Product Page', () => { } ); it( 'should make sure that variations were created', async () => { + await page.waitFor( 2000 ); // waitForSelector fails here...To-Do // 'Variations price is not set...' notice should be displayed await page.waitForSelector( '.woocommerce-notice-invalid-variation' );