feat: add configuration management system
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { TestConfig } from '../types';
|
||||
|
||||
export const defaultConfig: TestConfig = {
|
||||
baseURL: 'http://localhost:3000',
|
||||
timeout: 5000,
|
||||
retries: 3,
|
||||
environment: 'development',
|
||||
headless: true,
|
||||
slowMo: undefined
|
||||
};
|
||||
|
||||
export const testTimeouts = {
|
||||
short: 2000,
|
||||
medium: 5000,
|
||||
long: 10000,
|
||||
veryLong: 30000
|
||||
};
|
||||
|
||||
export const testThresholds = {
|
||||
performance: {
|
||||
good: 90,
|
||||
needsImprovement: 50,
|
||||
poor: 0
|
||||
},
|
||||
accessibility: {
|
||||
good: 95,
|
||||
needsImprovement: 80,
|
||||
poor: 0
|
||||
},
|
||||
seo: {
|
||||
good: 90,
|
||||
needsImprovement: 70,
|
||||
poor: 0
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user