tests cleanup

This commit is contained in:
2026-01-03 18:46:36 +01:00
parent 540c0fcb7a
commit c589b3c3fe
17 changed files with 402 additions and 2812 deletions

View File

@@ -0,0 +1,20 @@
import { BrowserContext, Browser } from '@playwright/test';
export interface AuthContext {
context: BrowserContext;
role: 'auth' | 'admin' | 'sponsor';
}
export class WebsiteAuthManager {
static async createAuthContext(
browser: Browser,
role: 'auth' | 'admin' | 'sponsor'
): Promise<AuthContext> {
const context = await browser.newContext();
return {
context,
role,
};
}
}