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
+2 -2
View File
@@ -2,7 +2,7 @@ import { resolve } from 'node:path';
import { test, testResultDir } from '@affine-test/kit/playwright';
import { openHomePage } from '@affine-test/kit/utils/load-page';
import { waitEditorLoad } from '@affine-test/kit/utils/page-logic';
import { waitForEditorLoad } from '@affine-test/kit/utils/page-logic';
import { expect } from '@playwright/test';
// default could be anything, according to the system
@@ -12,7 +12,7 @@ test('default white', async ({ browser }) => {
});
const page = await context.newPage();
await openHomePage(page);
await waitEditorLoad(page);
await waitForEditorLoad(page);
const root = page.locator('html');
const themeMode = await root.evaluate(element =>
element.getAttribute('data-theme')