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(core): config e2e output dir (#5783)

Peng Xiao5ca0d65241e1
diff --git a/tests/affine-cloud/playwright.config.ts b/tests/affine-cloud/playwright.config.ts
index fcd64a0b00..1587aef56a 100644
--- a/tests/affine-cloud/playwright.config.ts
+++ b/tests/affine-cloud/playwright.config.ts
@@ -1,3 +1,4 @@
+import { testResultDir } from '@affine-test/kit/playwright';
import type {
PlaywrightTestConfig,
PlaywrightWorkerOptions,
@@ -7,6 +8,7 @@ const config: PlaywrightTestConfig = {
testDir: './e2e',
fullyParallel: !process.env.CI,
timeout: 120_000,
+ outputDir: testResultDir,
use: {
baseURL: 'http://localhost:8081/',
browserName:
diff --git a/tests/affine-desktop-cloud/playwright.config.ts b/tests/affine-desktop-cloud/playwright.config.ts
index 2a274a0d1e..b732df17bb 100644
--- a/tests/affine-desktop-cloud/playwright.config.ts
+++ b/tests/affine-desktop-cloud/playwright.config.ts
@@ -1,3 +1,4 @@
+import { testResultDir } from '@affine-test/kit/playwright';
import type { PlaywrightTestConfig } from '@playwright/test';
// import { devices } from '@playwright/test';
@@ -14,6 +15,7 @@ const config: PlaywrightTestConfig = {
testDir: './e2e',
fullyParallel: true,
timeout: process.env.CI ? 50_000 : 30_000,
+ outputDir: testResultDir,
use: {
viewport: { width: 1440, height: 800 },
},
diff --git a/tests/affine-desktop/playwright.config.ts b/tests/affine-desktop/playwright.config.ts
index e3f0ea6ba1..b84315dd98 100644
--- a/tests/affine-desktop/playwright.config.ts
+++ b/tests/affine-desktop/playwright.config.ts
@@ -1,3 +1,4 @@
+import { testResultDir } from '@affine-test/kit/playwright';
import type { PlaywrightTestConfig } from '@playwright/test';
// import { devices } from '@playwright/test';
@@ -14,6 +15,7 @@ const config: PlaywrightTestConfig = {
testDir: './e2e',
fullyParallel: true,
timeout: process.env.CI ? 50_000 : 30_000,
+ outputDir: testResultDir,
use: {
viewport: { width: 1440, height: 800 },
},
diff --git a/tests/affine-local/playwright.config.ts b/tests/affine-local/playwright.config.ts
index 53b1afd83b..9decae4d85 100644
--- a/tests/affine-local/playwright.config.ts
+++ b/tests/affine-local/playwright.config.ts
@@ -1,3 +1,4 @@
+import { testResultDir } from '@affine-test/kit/playwright';
import type {
PlaywrightTestConfig,
PlaywrightWorkerOptions,
@@ -17,6 +18,7 @@ const config: PlaywrightTestConfig = {
testDir: './e2e',
fullyParallel: true,
timeout: process.env.CI ? 50_000 : 30_000,
+ outputDir: testResultDir,
use: {
baseURL: 'http://localhost:8080/',
browserName:
diff --git a/tests/affine-migration/playwright.config.ts b/tests/affine-migration/playwright.config.ts
index 54f4fe5cc3..25c807118e 100644
--- a/tests/affine-migration/playwright.config.ts
+++ b/tests/affine-migration/playwright.config.ts
@@ -1,3 +1,4 @@
+import { testResultDir } from '@affine-test/kit/playwright';
import type {
PlaywrightTestConfig,
PlaywrightWorkerOptions,
@@ -7,6 +8,7 @@ const config: PlaywrightTestConfig = {
testDir: './e2e',
fullyParallel: !process.env.CI,
timeout: process.env.CI ? 50_000 : 30_000,
+ outputDir: testResultDir,
use: {
baseURL: 'http://localhost:8080/',
browserName: