ConceptPortal-public/rsconcept/frontend/tests/mocks/auth.ts
2025-02-22 14:04:01 +03:00

10 lines
268 B
TypeScript

import { type Page } from '@playwright/test';
import { BACKEND_URL } from '../constants';
export async function authAnonymous(page: Page) {
await page.route(`${BACKEND_URL}/users/api/auth`, async route => {
await route.fulfill({ json: { id: null } });
});
}