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 } });
|
||
|
});
|
||
|
}
|