We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6230822 commit 7cdb443Copy full SHA for 7cdb443
_playwright-tests/auth.setup.ts
@@ -25,13 +25,16 @@ setup.describe('Setup', async () => {
25
process.env.USER1USERNAME,
26
process.env.USER1PASSWORD,
27
);
28
- await storeStorageStateAndToken(page);
+ // Save admin user storage state
29
+ await page.context().storageState({ path: '.auth/default_user.json' });
30
await logout(page);
31
await logInWithUsernameAndPassword(
32
page,
33
process.env.RO_USER_USERNAME,
34
process.env.RO_USER_PASSWORD,
35
36
+ // Save read-only user storage state
37
+ await page.context().storageState({ path: '.auth/readonly_user.json' });
38
39
// Example of how to add another user
40
// await logout(page)
0 commit comments