We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b09861d commit 3b9bff9Copy full SHA for 3b9bff9
1 file changed
test/integration/auth.setup.ts
@@ -1,5 +1,6 @@
1
import { test as setup } from '@playwright/test';
2
import path from 'path';
3
+import { BASE_URL } from './utils';
4
5
const authFile = path.join(__dirname, './.auth/user.json');
6
@@ -8,9 +9,10 @@ setup.describe('setup', () => {
8
9
await page.goto('/wp-login.php');
10
await page.fill('#user_login', 'admin');
11
await page.fill('#user_pass', 'password');
-
12
await page.getByRole('button', { name: 'Log In' }).click();
13
14
+ await page.waitForURL(`${BASE_URL}/wp-admin`);
15
+
16
await page.context().storageState({ path: authFile });
17
});
18
0 commit comments