建立新的react-web模块,react工程迁移到这个模块

This commit is contained in:
Gao Shan
2022-10-19 21:31:57 +08:00
committed by Gao Shan
parent fcccb31717
commit 5b4f8dec95
102 changed files with 72 additions and 4 deletions
@@ -0,0 +1,22 @@
// playwright.config.ts
import type { PlaywrightTestConfig } from '@playwright/test';
import { devices } from '@playwright/test';
const config: PlaywrightTestConfig = {
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
use: {
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
],
};
export default config;