test: improve data migration suite (#4124)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-09-02 03:31:07 +00:00
1 parent eb1a21265f
commit 70b5a9deeb
43 files changed
+273 -265

No files matched your search

@@ -3,7 +3,7 @@ import { openHomePage } from '@affine-test/kit/utils/load-page';
import {
getBlockSuiteEditorTitle,
newPage,
waitEditorLoad,
waitForEditorLoad,
} from '@affine-test/kit/utils/page-logic';
import { expect } from '@playwright/test';
@@ -12,7 +12,7 @@ test('page delete -> refresh page -> it should be disappear', async ({
workspace,
}) => {
await openHomePage(page);
await waitEditorLoad(page);
await waitForEditorLoad(page);
await newPage(page);
await getBlockSuiteEditorTitle(page).click();
await getBlockSuiteEditorTitle(page).fill('this is a new page delete');
@@ -55,7 +55,7 @@ test('page delete -> create new page -> refresh page -> new page should be appea
workspace,
}) => {
await openHomePage(page);
await waitEditorLoad(page);
await waitForEditorLoad(page);
await newPage(page);
await getBlockSuiteEditorTitle(page).click();
await getBlockSuiteEditorTitle(page).fill('this is a new page delete');
@@ -113,7 +113,7 @@ test('delete multiple pages -> create multiple pages -> refresh', async ({
workspace,
}) => {
await openHomePage(page);
await waitEditorLoad(page);
await waitForEditorLoad(page);
// create 1st page
await newPage(page);
await getBlockSuiteEditorTitle(page).click();