mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 21:06:22 +08:00
chore(core): upload flaky test traces (#9974)
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import process from 'node:process';
|
||||
|
||||
import { testResultDir } from '@affine-test/kit/playwright';
|
||||
import type { PlaywrightWorkerOptions } from '@playwright/test';
|
||||
import { defineConfig } from '@playwright/test';
|
||||
|
||||
export default defineConfig({
|
||||
testDir: '.',
|
||||
outputDir: testResultDir,
|
||||
timeout: process.env.CI ? 40000 : 999999,
|
||||
fullyParallel: true,
|
||||
snapshotDir: 'snapshots',
|
||||
|
||||
@@ -322,7 +322,6 @@ export async function enterPlaygroundRoom(
|
||||
page.on('console', message => {
|
||||
if (
|
||||
[
|
||||
'',
|
||||
// React devtools:
|
||||
'%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools font-weight:bold',
|
||||
// Vite:
|
||||
@@ -334,7 +333,7 @@ export async function enterPlaygroundRoom(
|
||||
'Lit is in dev mode. Not recommended for production! See https://lit.dev/msg/dev-mode for more information.',
|
||||
// Figma embed:
|
||||
'Running frontend commit',
|
||||
].includes(message.text())
|
||||
].some(text => message.text().startsWith(text))
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user