Skip to content

Commit

Permalink
chore: js format
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Jun 20, 2024
1 parent 7a21f6c commit 46a2891
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/blocks/test/e2e/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ export function deleteFile( filePath ) {
}

export async function tryLoginIn( page, username = 'admin', password = 'password' ) {
await page.goto('/wp-login.php');
await page.fill('input[name="log"]', username);
await page.fill('input[name="pwd"]', password);
await page.check('input[name="rememberme"]');
await page.click('input[name="wp-submit"]');
await page.goto( '/wp-login.php' );
await page.fill( 'input[name="log"]', username );
await page.fill( 'input[name="pwd"]', password );
await page.check( 'input[name="rememberme"]' );
await page.click( 'input[name="wp-submit"]' );

// Save the context since tests are isolated.
// So we need to save the auth state to keep the user logged in so that they can be used in the next test.
Expand Down

0 comments on commit 46a2891

Please sign in to comment.