mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-02 15:28:22 +03:00
20 lines
768 B
TypeScript
20 lines
768 B
TypeScript
import { test } from '@affine-test/kit/playwright';
|
|
|
|
import { openHomePage } from '../../libs/load-page';
|
|
import { waitMarkdownImported } from '../../libs/page-logic';
|
|
import { clickSideBarAllPageButton } from '../../libs/sidebar';
|
|
import { createFakeUser, loginUser } from '../../libs/utils';
|
|
import { enableAffineCloudWorkspace } from '../../libs/workspace';
|
|
|
|
test('authorization expired', async ({ page }) => {
|
|
await openHomePage(page);
|
|
await waitMarkdownImported(page);
|
|
const [a] = await createFakeUser();
|
|
await loginUser(page, a);
|
|
await enableAffineCloudWorkspace(page);
|
|
await clickSideBarAllPageButton(page);
|
|
await page.evaluate(() => localStorage.removeItem('affine-login-v2'));
|
|
await openHomePage(page);
|
|
await waitMarkdownImported(page);
|
|
});
|