mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
ci: run some optimize on CI e2e (#11330)
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user