From 1902936bdc268c80b7186691a9119a735dfbe1a6 Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Wed, 1 Dec 2021 09:19:03 +1300 Subject: [PATCH] Add in wait for user input box to prevent username being partially entered --- packages/e2e-test-utils/src/create-user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/e2e-test-utils/src/create-user.js b/packages/e2e-test-utils/src/create-user.js index 63fdcee42ca578..5b6b2a52ae7b0d 100644 --- a/packages/e2e-test-utils/src/create-user.js +++ b/packages/e2e-test-utils/src/create-user.js @@ -27,7 +27,7 @@ export async function createUser( ) { await switchUserToAdmin(); await visitAdminPage( 'user-new.php' ); - + await page.waitForSelector( '#user_login', { visible: true } ); await page.type( '#user_login', username ); await page.type( '#email', snakeCase( username ) + '@example.com' ); if ( firstName ) {