mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-25 02:14:11 -05:00
refactor: cleanup playwright tests (#51499)
This commit is contained in:
committed by
GitHub
parent
6c25982446
commit
7750cec84f
@@ -3,5 +3,7 @@ import { test as setup } from '@playwright/test';
|
||||
setup('Login', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await page.getByRole('link', { name: 'Sign in' }).click();
|
||||
await page.context().storageState({ path: './LoginAuth.json' });
|
||||
await page
|
||||
.context()
|
||||
.storageState({ path: 'playwright/.auth/certified-user.json' });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user