test: improve data migration suite (#4124)

This commit is contained in:
Alex Yang
2023-09-01 22:31:07 -05:00
committed by GitHub
parent eb1a21265f
commit 70b5a9deeb
43 changed files with 273 additions and 265 deletions

View File

@@ -4,7 +4,7 @@ import {
clickPageMoreActions,
getBlockSuiteEditorTitle,
newPage,
waitEditorLoad,
waitForEditorLoad,
} from '@affine-test/kit/utils/page-logic';
import { waitForLogMessage } from '@affine-test/kit/utils/utils';
import { expect } from '@playwright/test';
@@ -14,7 +14,7 @@ test('New a page and open it ,then favorite it', 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 to favorite');
@@ -35,7 +35,7 @@ test('New a page and open it ,then favorite it', async ({
test('Export to html, markdown and png', async ({ page }) => {
await openHomePage(page);
await waitEditorLoad(page);
await waitForEditorLoad(page);
{
await clickPageMoreActions(page);
await page.getByTestId('export-menu').click();
@@ -69,7 +69,7 @@ test.skip('Export to pdf', async ({ page }) => {
});
});
await openHomePage(page);
await waitEditorLoad(page);
await waitForEditorLoad(page);
{
await clickPageMoreActions(page);
await page.getByTestId('export-menu').click();
@@ -80,7 +80,7 @@ test.skip('Export to pdf', async ({ page }) => {
test('Cancel favorite', async ({ page, 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 to favorite');