ci: run some optimize on CI e2e (#11330)

This commit is contained in:
Brooooooklyn
2025-03-31 15:23:21 +00:00
parent 2eecfef393
commit d31e0c0e71
2 changed files with 3 additions and 3 deletions

View File

@@ -37,9 +37,9 @@ export async function waitForAllPagesLoad(page: Page) {
}
export async function clickNewPageButton(page: Page, title?: string) {
// fixme(himself65): if too fast, the page will crash
await page.getByTestId('sidebar-new-page-button').click({
delay: 100,
// default timeout is 5000ms, but it's not enough for the CI first page load
timeout: 8000,
});
await waitForEmptyEditor(page);
if (title) {