mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
10 lines
263 B
TypeScript
10 lines
263 B
TypeScript
import { 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 } });
|
|
});
|
|
}
|