test(core): config e2e output dir (#5783)

This commit is contained in:
Peng Xiao
2024-02-05 04:10:17 +00:00
parent 51680da33b
commit 5ca0d65241
5 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
import { testResultDir } from '@affine-test/kit/playwright';
import type { import type {
PlaywrightTestConfig, PlaywrightTestConfig,
PlaywrightWorkerOptions, PlaywrightWorkerOptions,
@@ -7,6 +8,7 @@ const config: PlaywrightTestConfig = {
testDir: './e2e', testDir: './e2e',
fullyParallel: !process.env.CI, fullyParallel: !process.env.CI,
timeout: 120_000, timeout: 120_000,
outputDir: testResultDir,
use: { use: {
baseURL: 'http://localhost:8081/', baseURL: 'http://localhost:8081/',
browserName: browserName:

View File

@@ -1,3 +1,4 @@
import { testResultDir } from '@affine-test/kit/playwright';
import type { PlaywrightTestConfig } from '@playwright/test'; import type { PlaywrightTestConfig } from '@playwright/test';
// import { devices } from '@playwright/test'; // import { devices } from '@playwright/test';
@@ -14,6 +15,7 @@ const config: PlaywrightTestConfig = {
testDir: './e2e', testDir: './e2e',
fullyParallel: true, fullyParallel: true,
timeout: process.env.CI ? 50_000 : 30_000, timeout: process.env.CI ? 50_000 : 30_000,
outputDir: testResultDir,
use: { use: {
viewport: { width: 1440, height: 800 }, viewport: { width: 1440, height: 800 },
}, },

View File

@@ -1,3 +1,4 @@
import { testResultDir } from '@affine-test/kit/playwright';
import type { PlaywrightTestConfig } from '@playwright/test'; import type { PlaywrightTestConfig } from '@playwright/test';
// import { devices } from '@playwright/test'; // import { devices } from '@playwright/test';
@@ -14,6 +15,7 @@ const config: PlaywrightTestConfig = {
testDir: './e2e', testDir: './e2e',
fullyParallel: true, fullyParallel: true,
timeout: process.env.CI ? 50_000 : 30_000, timeout: process.env.CI ? 50_000 : 30_000,
outputDir: testResultDir,
use: { use: {
viewport: { width: 1440, height: 800 }, viewport: { width: 1440, height: 800 },
}, },

View File

@@ -1,3 +1,4 @@
import { testResultDir } from '@affine-test/kit/playwright';
import type { import type {
PlaywrightTestConfig, PlaywrightTestConfig,
PlaywrightWorkerOptions, PlaywrightWorkerOptions,
@@ -17,6 +18,7 @@ const config: PlaywrightTestConfig = {
testDir: './e2e', testDir: './e2e',
fullyParallel: true, fullyParallel: true,
timeout: process.env.CI ? 50_000 : 30_000, timeout: process.env.CI ? 50_000 : 30_000,
outputDir: testResultDir,
use: { use: {
baseURL: 'http://localhost:8080/', baseURL: 'http://localhost:8080/',
browserName: browserName:

View File

@@ -1,3 +1,4 @@
import { testResultDir } from '@affine-test/kit/playwright';
import type { import type {
PlaywrightTestConfig, PlaywrightTestConfig,
PlaywrightWorkerOptions, PlaywrightWorkerOptions,
@@ -7,6 +8,7 @@ const config: PlaywrightTestConfig = {
testDir: './e2e', testDir: './e2e',
fullyParallel: !process.env.CI, fullyParallel: !process.env.CI,
timeout: process.env.CI ? 50_000 : 30_000, timeout: process.env.CI ? 50_000 : 30_000,
outputDir: testResultDir,
use: { use: {
baseURL: 'http://localhost:8080/', baseURL: 'http://localhost:8080/',
browserName: browserName: