test(core): config e2e output dir (#5783)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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 },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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 },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user