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

+12
View File
@@ -10,3 +10,15 @@ export async function checkBlockHub(page: Page) {
if (!box2) throw new Error('block-hub not found');
expect(box2.height).toBeGreaterThan(box.height);
}
export async function clickEdgelessModeButton(page: Page) {
await page.getByTestId('switch-edgeless-mode-button').click({
delay: 50,
});
}
export async function clickPageModeButton(page: Page) {
return page.getByTestId('switch-page-mode-button').click({
delay: 50,
});
}