Skip to content

Commit

Permalink
Add in wait for user input box to prevent username being partially en…
Browse files Browse the repository at this point in the history
…tered
  • Loading branch information
Glen Davies committed Nov 30, 2021
1 parent 0436e24 commit 1902936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/e2e-test-utils/src/create-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 1902936

Please sign in to comment.