Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

test: increase `retries` times to 3 (#1763)

Himself65bd67554f5e72
diff --git a/playwright.config.ts b/playwright.config.ts
index d25d23a4dc..4a4e7ea128 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -36,7 +36,7 @@ const config: PlaywrightTestConfig = {
},
forbidOnly: !!process.env.CI,
workers: 4,
- retries: 1,
+ retries: 3,
// 'github' for GitHub Actions CI to generate annotations, plus a concise 'dot'
// default 'list' when running locally
// See https://playwright.dev/docs/test-reporters#github-actions-annotations
diff --git a/tests/parallels/affine/affine-workspace.spec.ts b/tests/parallels/affine/affine-workspace.spec.ts
index aa51fb92ff..fe4f50fc86 100644
--- a/tests/parallels/affine/affine-workspace.spec.ts
+++ b/tests/parallels/affine/affine-workspace.spec.ts
@@ -45,7 +45,7 @@ test.describe('affine workspace', () => {
await page.getByTestId('local-workspace-enable-cloud-button').click();
await page.getByTestId('confirm-enable-cloud-button').click();
await page.waitForSelector("[data-testid='member-length']", {
- timeout: 10000,
+ timeout: 20000,
});
await clickSideBarAllPageButton(page);
await clickNewPageButton(page);
diff --git a/tests/parallels/theme.spec.ts b/tests/parallels/theme.spec.ts
index c3390034dd..1a821826c2 100644
--- a/tests/parallels/theme.spec.ts
+++ b/tests/parallels/theme.spec.ts
@@ -20,6 +20,7 @@ test.describe('Change Theme', () => {
);
expect(themeMode).toBe('light');
+ await page.waitForTimeout(50);
const rightMenu = page.getByTestId('editor-option-menu');
const rightMenuBox = await rightMenu.boundingBox();
const lightButton = page.getByTestId('change-theme-light');