2023-04-25 06:12:48 +03:00
|
|
|
import { test } from '@affine-test/kit/playwright';
|
2023-05-31 07:24:14 +03:00
|
|
|
import { expect } from '@playwright/test';
|
2023-04-25 06:12:48 +03:00
|
|
|
|
2023-04-22 04:44:29 +03:00
|
|
|
import { openHomePage } from '../../libs/load-page';
|
2023-06-07 12:31:54 +03:00
|
|
|
import { waitEditorLoad } from '../../libs/page-logic';
|
2023-04-22 04:44:29 +03:00
|
|
|
import { clickSideBarAllPageButton } from '../../libs/sidebar';
|
|
|
|
import { createFakeUser, loginUser } from '../../libs/utils';
|
|
|
|
import { enableAffineCloudWorkspace } from '../../libs/workspace';
|
|
|
|
|
2023-06-24 20:16:46 +03:00
|
|
|
test.fixme('authorization expired', async ({ page }) => {
|
2023-04-22 04:44:29 +03:00
|
|
|
await openHomePage(page);
|
2023-06-07 12:31:54 +03:00
|
|
|
await waitEditorLoad(page);
|
2023-04-22 04:44:29 +03:00
|
|
|
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);
|
2023-05-31 07:24:14 +03:00
|
|
|
await expect(page.getByTestId('new-workspace')).toBeVisible();
|
2023-04-22 04:44:29 +03:00
|
|
|
});
|