mirror of
https://github.com/luxfi/wallet.git
synced 2026-07-27 03:37:41 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
30 lines
758 B
TypeScript
30 lines
758 B
TypeScript
import { defineConfig } from '@playwright/test'
|
|
import ms from 'ms'
|
|
|
|
const IS_CI = process.env.CI === 'true'
|
|
|
|
// oxlint-disable-next-line import/no-unused-modules
|
|
export default defineConfig({
|
|
testDir: '../tests',
|
|
testMatch: '**/*.test.ts',
|
|
workers: 1,
|
|
fullyParallel: false, // Extensions need sequential loading
|
|
maxFailures: IS_CI ? 10 : undefined,
|
|
retries: IS_CI ? 3 : 0,
|
|
reporter: 'list',
|
|
timeout: ms('60s'),
|
|
expect: {
|
|
timeout: ms('10s'),
|
|
},
|
|
use: {
|
|
screenshot: 'off',
|
|
video: 'retain-on-failure',
|
|
trace: 'retain-on-failure',
|
|
headless: false, // Chrome extensions require headed mode
|
|
launchOptions: {
|
|
args: ['--disable-blink-features=AutomationControlled'],
|
|
},
|
|
},
|
|
outputDir: '../test-results',
|
|
})
|