chore(core): upload flaky test traces (#9974)

This commit is contained in:
pengx17
2025-02-07 07:08:55 +00:00
committed by Peng Xiao
parent fc4fe481ef
commit 9fd547d484
10 changed files with 38 additions and 34 deletions
@@ -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;
}