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
+2
View File
@@ -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:
@@ -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 },
},
@@ -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 },
},
+2
View File
@@ -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:
@@ -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: