feat: signout helper function for Playwright (#54747)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
pull/54835/head^2
Sem Bauke 2024-05-16 10:13:22 +02:00 committed by GitHub
parent 37dc23d98d
commit 5d0602179f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

5
e2e/utils/logout.ts Normal file
View File

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