freeCodeCamp/e2e/utils/logout.ts
Sem Bauke 5d0602179f
feat: signout helper function for Playwright (#54747)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2024-05-16 10:13:22 +02:00

6 lines
155 B
TypeScript

import { Page } from '@playwright/test';
export async function signout(page: Page) {
await page.context().clearCookies({ name: 'jwt_access_token' });
}