refactor!: next generation AFFiNE code structure (#1176)

This commit is contained in:
Himself65 authored and GitHub committed 2023-03-01 15:40:01 +08:00
1 parent 2dcccc772c
commit e0481d29ad
270 files changed
+8308 -6829

No files matched your search

+6 -3
View File
@@ -1,13 +1,16 @@
import type { Page } from '@playwright/test';
export async function newPage(page: Page) {
return page.getByTestId('sliderBar').getByText('New Page').click();
// fixme(himself65): if too fast, the page will crash
await page.getByTestId('sliderBar').getByText('New Page').click({
delay: 100,
});
await page.waitForTimeout(100);
}
export async function clickPageMoreActions(page: Page) {
return page
.getByTestId('editor-header-items')
.getByRole('button')
.nth(1)
.getByTestId('editor-option-menu')
.click();
}