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(server): remove flaky assertion (#5224)

LongYinan467d3137307b
diff --git a/tests/affine-cloud/e2e/migration.spec.ts b/tests/affine-cloud/e2e/migration.spec.ts
index f5db86fb57..c65f8dcdc1 100644
--- a/tests/affine-cloud/e2e/migration.spec.ts
+++ b/tests/affine-cloud/e2e/migration.spec.ts
@@ -10,7 +10,6 @@ import {
loginUser,
runPrisma,
} from '@affine-test/kit/utils/cloud';
-import { clickEdgelessModeButton } from '@affine-test/kit/utils/editor';
import { coreUrl } from '@affine-test/kit/utils/load-page';
import {
clickNewPageButton,
@@ -104,8 +103,10 @@ test('migration', async ({ page, browser }) => {
await page.waitForTimeout(5000);
await page.reload();
await waitForEditorLoad(page);
- await clickEdgelessModeButton(page);
- await expect(page.locator('affine-edgeless-page')).toBeVisible({
- timeout: 1000,
- });
+
+ // click edgeless switch button is flaky in e2e
+ // await clickEdgelessModeButton(page);
+ // await expect(page.locator('affine-edgeless-page')).toBeVisible({
+ // timeout: 1000,
+ // });
});