From 1953d4f96a8bb4dd2fc660852f639e0c6707c36b Mon Sep 17 00:00:00 2001 From: Darren Ethier Date: Tue, 23 Jun 2020 09:22:18 -0400 Subject: [PATCH] remove unnecessary await (https://github.com/woocommerce/woocommerce-blocks/pull/2764) --- plugins/woocommerce-blocks/tests/utils/visit-block-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-blocks/tests/utils/visit-block-page.js b/plugins/woocommerce-blocks/tests/utils/visit-block-page.js index 0293c876619..f10965690e6 100644 --- a/plugins/woocommerce-blocks/tests/utils/visit-block-page.js +++ b/plugins/woocommerce-blocks/tests/utils/visit-block-page.js @@ -49,7 +49,7 @@ export async function visitBlockPage( title ) { await page.type( '#post-search-input', title ); await page.click( '#search-submit', { waitUntil: 'domcontentloaded' } ); const pageLink = await page.$x( `//a[contains(text(), '${ title }')]` ); - if ( ( await pageLink.length ) > 0 ) { + if ( pageLink.length > 0 ) { // clicking the link directly caused racing issues, so I used goto. link = await page.evaluate( ( a ) => a.getAttribute( 'href' ),