mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
2253d05618
Remove the nested v3/ subdirectory by moving all active source code, tests, configs, and assets directly to the project root. Archive v2/ (dead code, 847MB) to v2-archive.tar.gz. Key changes: - Move v3/src/ → src/, v3/tests/ → tests/, v3/packages/ → packages/ - Move v3/tsconfig.json, v3/vitest.config.ts to root - Merge v3/package.json into root package.json (ESM, scripts, deps, exports) - Merge v3/scripts/ into scripts/, v3/implementation/ into docs/implementation/ - Update all CI workflows to remove "cd v3 &&" and v3/ path prefixes - Fix all init installer path resolution (3-level-up → 2-level-up) - Fix hooks to use "node ./dist/cli/bundle.js" instead of bare "aqe" - Update settings.json ADR/DDD directories to docs/implementation/ - Fix helper scripts (statusline, adr-compliance, ddd-tracker, guidance-hooks) - Update 58 agent definitions: aqe/v3/ → aqe/ memory namespaces - Update 15 guidance shards: v3/src/ → src/ path references - Fix sync interfaces: remove v3/ and v2/ path references - Fix test path calculations (process.cwd() + '..' no longer needed) - Fix flaky perf test threshold (500ms → 1000ms for CI environments) - Fix complexity-analyzer test to match ADR-051 keyword-based eligibility Build passes, 17,901 tests pass, CLI and MCP bundles verified. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
95 lines
2.2 KiB
TypeScript
95 lines
2.2 KiB
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
/**
|
|
* Playwright Configuration for Sauce Demo E2E Tests
|
|
* Generated by: qe-queen-coordinator
|
|
* Date: 2026-01-25
|
|
*/
|
|
export default defineConfig({
|
|
testDir: './specs',
|
|
|
|
/* Run tests in files in parallel */
|
|
fullyParallel: true,
|
|
|
|
/* Fail the build on CI if you accidentally left test.only in the source code */
|
|
forbidOnly: !!process.env.CI,
|
|
|
|
/* Retry on CI only - helps with flaky tests */
|
|
retries: process.env.CI ? 2 : 0,
|
|
|
|
/* Opt out of parallel tests on CI for stability */
|
|
workers: process.env.CI ? 1 : undefined,
|
|
|
|
/* Reporter configuration */
|
|
reporter: [
|
|
['list'],
|
|
['html', { outputFolder: 'playwright-report' }],
|
|
['json', { outputFile: 'test-results/results.json' }],
|
|
['junit', { outputFile: 'test-results/junit.xml' }]
|
|
],
|
|
|
|
/* Shared settings for all the projects below */
|
|
use: {
|
|
/* Base URL for the Sauce Demo store */
|
|
baseURL: process.env.BASE_URL || 'https://sauce-demo.myshopify.com',
|
|
|
|
/* Collect trace when retrying the failed test */
|
|
trace: 'on-first-retry',
|
|
|
|
/* Screenshot on failure */
|
|
screenshot: 'only-on-failure',
|
|
|
|
/* Video recording on failure */
|
|
video: 'on-first-retry',
|
|
|
|
/* Default timeout for actions */
|
|
actionTimeout: 10000,
|
|
|
|
/* Default timeout for navigation */
|
|
navigationTimeout: 30000,
|
|
},
|
|
|
|
/* Configure projects for major browsers */
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
{
|
|
name: 'firefox',
|
|
use: { ...devices['Desktop Firefox'] },
|
|
},
|
|
{
|
|
name: 'webkit',
|
|
use: { ...devices['Desktop Safari'] },
|
|
},
|
|
|
|
/* Mobile viewports */
|
|
{
|
|
name: 'mobile-chrome',
|
|
use: { ...devices['Pixel 5'] },
|
|
},
|
|
{
|
|
name: 'mobile-safari',
|
|
use: { ...devices['iPhone 12'] },
|
|
},
|
|
|
|
/* Tablet viewport */
|
|
{
|
|
name: 'tablet',
|
|
use: { ...devices['iPad (gen 7)'] },
|
|
},
|
|
],
|
|
|
|
/* Global timeout for tests */
|
|
timeout: 60000,
|
|
|
|
/* Expect timeout */
|
|
expect: {
|
|
timeout: 10000,
|
|
},
|
|
|
|
/* Output folder for test artifacts */
|
|
outputDir: 'test-results/',
|
|
});
|