mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-07-30 11:43:26 +08:00
* chore: rename webapp-template packages to ui-bundle-template * chore: sync React b2e and b2x samples from npm @1.117.3 * chore: rename sample folders to match ui-bundle-template package names * chore: sync React b2e and b2x samples from npm @1.117.5 * chore: remove accidental trace.md from b2e sample * chore: keep old webapp-template sample directories alongside new ui-bundle-template ones * chore: revert component.md change from skills/generating-webapplication-ui * chore: update ui-bundle-template sample versions to 1.117.5
25 lines
768 B
TypeScript
25 lines
768 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
const E2E_PORT = 5175;
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
reporter: 'html',
|
|
use: {
|
|
baseURL: `http://localhost:${E2E_PORT}`,
|
|
trace: 'on-first-retry',
|
|
},
|
|
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
|
|
webServer: {
|
|
// Serve built dist/ with static server so e2e works in CI without SF org (vite preview runs plugin and can fail)
|
|
command: `npx serve dist -l ${E2E_PORT}`,
|
|
url: `http://localhost:${E2E_PORT}`,
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: process.env.CI ? 120_000 : 60_000,
|
|
},
|
|
});
|