-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-config.ts
More file actions
69 lines (64 loc) · 1.82 KB
/
test-config.ts
File metadata and controls
69 lines (64 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
* Test Configuration for Dither & Etch
* Central place to define test URLs and settings
*/
export const testConfig = {
baseURL: `http://localhost:${process.env.TEST_PORT || '14321'}`,
// Auto-discovery settings
discovery: {
enabled: true,
methods: ['sitemap', 'navigation', 'crawl'],
maxDepth: 2,
excludePatterns: [
'/admin',
'/api',
'/login',
'/logout',
'/dashboard',
'/profile',
'/settings',
'/_astro',
'/_image',
'/.well-known',
],
},
// Manual fallback pages (used if auto-discovery fails)
fallbackPages: [
{ name: 'Home', path: '/' },
{ name: 'Contact', path: '/contact' },
{ name: 'Gallery', path: '/gallery' },
{ name: 'Privacy', path: '/privacy' },
{ name: 'Terms', path: '/terms' },
{ name: 'Tools Index', path: '/tools' },
{ name: 'Background Tool', path: '/tools/background' },
{ name: 'Contour Tool', path: '/tools/contour' },
{ name: 'Dither Tool', path: '/tools/dither' },
{ name: 'Editor Tool', path: '/tools/editor' },
{ name: 'Masking Tool', path: '/tools/masking' },
{ name: 'Journal Index', path: '/journal' },
],
// Test thresholds (2026 Standards)
thresholds: {
performance: {
loadTime: 4000, // Stricter load time
lcp: 2500, // Core Web Vitals "Good" limit
cls: 0.1, // Core Web Vitals "Good" limit
inp: 200, // Core Web Vitals "Good" limit (Interaction to Next Paint)
tbt: 200, // Total Blocking Time (proxy for interactivity)
},
accessibility: {
minScore: 1.0, // Aim for perfection
},
seo: {
minScore: 1.0,
validateSchema: true,
},
},
// Site-specific info
site: {
name: 'Dither & Etch',
domain: 'ditherandetch.ca',
language: 'en-CA',
expectedTitlePattern: ' | Dither & Etch',
},
};