feat: add preloading template (#2655)

Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
FlrandeandHimself65 authored and GitHub committed 2023-06-07 17:31:54 +08:00
1 parent c4c4ec6a67
commit 35fb10c95b
67 files changed
+6761 -287

No files matched your search

+4 -4
View File
@@ -2,14 +2,14 @@ import { test } from '@affine-test/kit/playwright';
import { expect } from '@playwright/test';
import { openHomePage } from '../libs/load-page';
import { waitMarkdownImported } from '../libs/page-logic';
import { waitEditorLoad } from '../libs/page-logic';
import { createWorkspace } from '../libs/workspace';
test('Open last workspace when back to affine', async ({ page }) => {
await openHomePage(page);
await waitMarkdownImported(page);
await waitEditorLoad(page);
await createWorkspace({ name: 'New Workspace 2' }, page);
await waitMarkdownImported(page);
await waitEditorLoad(page);
// show workspace list
await page.getByTestId('workspace-name').click();
@@ -19,7 +19,7 @@ test('Open last workspace when back to affine', async ({ page }) => {
await workspaceCards[1].click();
await openHomePage(page);
const workspaceNameDom = await page.getByTestId('workspace-name');
const workspaceNameDom = page.getByTestId('workspace-name');
const currentWorkspaceName = await workspaceNameDom.evaluate(
node => node.textContent
);