feat: signout helper function for Playwright (#54747)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Sem Bauke
2024-05-16 10:13:22 +02:00
committed by GitHub
parent 37dc23d98d
commit 5d0602179f
+5
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' });
}