mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat: signout helper function for Playwright (#54747)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import { Page } from '@playwright/test';
|
||||
|
||||
export async function signout(page: Page) {
|
||||
await page.context().clearCookies({ name: 'jwt_access_token' });
|
||||
}
|
||||
Reference in New Issue
Block a user