test(e2e): add mock sidebar logout coverage
This commit is contained in:
@@ -21,6 +21,10 @@ export async function mockCoreApis(page: Page): Promise<void> {
|
||||
await route.fulfill({ json: apiEnvelope(emailLoginResponse) });
|
||||
});
|
||||
|
||||
await page.route("**/api/auth/logout", async (route) => {
|
||||
await route.fulfill({ json: apiEnvelope(null) });
|
||||
});
|
||||
|
||||
await page.route("**/api/user/profile", async (route) => {
|
||||
await route.fulfill({ json: apiEnvelope(e2eEmailUser) });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user