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
+2 -2
View File
@@ -37,9 +37,9 @@ export async function waitForAllPagesLoad(page: Page) {
} }
export async function clickNewPageButton(page: Page, title?: string) { 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({ 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); await waitForEmptyEditor(page);
if (title) { if (title) {
+1 -1
View File
@@ -396,7 +396,7 @@ export function createWebpackConfig(
); );
} }
if (flags.mode === 'development') { if (flags.mode === 'development' && !IN_CI) {
config.optimization = { config.optimization = {
...config.optimization, ...config.optimization,
minimize: false, minimize: false,