fix: logic after delete all workspaces (#2587)

Co-authored-by: JimmFly <yangjinfei001@gmail.com>
This commit is contained in:
Himself65
2023-05-31 12:24:14 +08:00
committed by GitHub
parent 1c7ae04f4f
commit 8dbd354659
11 changed files with 100 additions and 77 deletions

View File

@@ -1,4 +1,5 @@
import { test } from '@affine-test/kit/playwright';
import { expect } from '@playwright/test';
import { openHomePage } from '../../libs/load-page';
import { waitMarkdownImported } from '../../libs/page-logic';
@@ -15,5 +16,5 @@ test('authorization expired', async ({ page }) => {
await clickSideBarAllPageButton(page);
await page.evaluate(() => localStorage.removeItem('affine-login-v2'));
await openHomePage(page);
await waitMarkdownImported(page);
await expect(page.getByTestId('new-workspace')).toBeVisible();
});