mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
chore(electron): speed up electron tests (#9871)
This commit is contained in:
@@ -136,6 +136,8 @@ test('delete workspace and then restore it from backup', async ({ page }) => {
|
||||
);
|
||||
//#endregion
|
||||
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
//#region 4. restore the workspace from backup
|
||||
await page.getByTestId('slider-bar-workspace-setting-button').click();
|
||||
await expect(page.getByTestId('setting-modal')).toBeVisible();
|
||||
|
||||
@@ -16,7 +16,6 @@ import type { PlaywrightTestConfig } from '@playwright/test';
|
||||
const config: PlaywrightTestConfig = {
|
||||
testDir: './e2e',
|
||||
fullyParallel: true,
|
||||
workers: 1,
|
||||
timeout: process.env.CI ? 50_000 : 30_000,
|
||||
expect: {
|
||||
timeout: process.env.CI ? 15_000 : 5_000,
|
||||
@@ -30,6 +29,7 @@ const config: PlaywrightTestConfig = {
|
||||
|
||||
if (process.env.CI) {
|
||||
config.retries = 5;
|
||||
config.workers = 2;
|
||||
}
|
||||
|
||||
if (process.env.DEV_SERVER_URL) {
|
||||
|
||||
Reference in New Issue
Block a user