Barazo default frontend
barazo.forum
1const chromeLaunchConfig = {
2 args: ['--no-sandbox'],
3}
4
5// In CI, use the system-installed Chrome
6if (process.env.CI) {
7 chromeLaunchConfig.executablePath = '/usr/bin/google-chrome-stable'
8}
9
10module.exports = {
11 defaults: {
12 standard: 'WCAG2AA',
13 timeout: 30000,
14 wait: 1000,
15 chromeLaunchConfig,
16 },
17 urls: [
18 'http://localhost:3000/',
19 {
20 url: 'http://localhost:3000/c/general/',
21 // In CI (no backend API), these pages throw during SSR and render error
22 // boundaries. Next.js streaming SSR discards all route metadata (including
23 // the root layout's static title) when a page component errors. The error
24 // boundary sets document.title client-side, but the <title> element is
25 // absent from the initial SSR HTML. In production, generateMetadata
26 // provides the title on successful renders.
27 ignore: ['WCAG2AA.Principle2.Guideline2_4.2_4_2.H25.1.NoTitleEl'],
28 },
29 {
30 url: 'http://localhost:3000/jay.bsky.team/abc123/',
31 ignore: ['WCAG2AA.Principle2.Guideline2_4.2_4_2.H25.1.NoTitleEl'],
32 },
33 'http://localhost:3000/search/',
34 'http://localhost:3000/admin/',
35 'http://localhost:3000/settings/',
36 {
37 url: 'http://localhost:3000/profile/jay/',
38 ignore: ['WCAG2AA.Principle2.Guideline2_4.2_4_2.H25.1.NoTitleEl'],
39 },
40 'http://localhost:3000/accessibility/',
41 ],
42}