fix(ci): convert backstop config to cjs to support ESM project module resolution
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 39s
Build & Deploy / 🧪 QA (push) Successful in 1m40s
Build & Deploy / 🏗️ Build (push) Successful in 4m15s
Build & Deploy / 🚀 Deploy (push) Successful in 32s
Build & Deploy / ⚡ Lighthouse (push) Successful in 2m52s
Build & Deploy / 🧪 Smoke Test (push) Successful in 3m29s
Build & Deploy / ♿ WCAG (push) Successful in 2m22s
Build & Deploy / 🛡️ Quality Gates (push) Failing after 2m41s
Build & Deploy / 📸 Visual Diff (push) Failing after 4m47s
Build & Deploy / 🔔 Notify (push) Successful in 2s
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 39s
Build & Deploy / 🧪 QA (push) Successful in 1m40s
Build & Deploy / 🏗️ Build (push) Successful in 4m15s
Build & Deploy / 🚀 Deploy (push) Successful in 32s
Build & Deploy / ⚡ Lighthouse (push) Successful in 2m52s
Build & Deploy / 🧪 Smoke Test (push) Successful in 3m29s
Build & Deploy / ♿ WCAG (push) Successful in 2m22s
Build & Deploy / 🛡️ Quality Gates (push) Failing after 2m41s
Build & Deploy / 📸 Visual Diff (push) Failing after 4m47s
Build & Deploy / 🔔 Notify (push) Successful in 2s
This commit is contained in:
66
backstop.config.cjs
Normal file
66
backstop.config.cjs
Normal file
@@ -0,0 +1,66 @@
|
||||
/* eslint-disable */
|
||||
module.exports = {
|
||||
id: 'klz-cables',
|
||||
viewports: [
|
||||
{
|
||||
label: 'phone',
|
||||
width: 375,
|
||||
height: 667,
|
||||
},
|
||||
{
|
||||
label: 'tablet',
|
||||
width: 768,
|
||||
height: 1024,
|
||||
},
|
||||
{
|
||||
label: 'desktop',
|
||||
width: 1440,
|
||||
height: 900,
|
||||
},
|
||||
],
|
||||
onBeforeScript: 'puppet/onBefore.js',
|
||||
onReadyScript: 'puppet/onReady.js',
|
||||
scenarios: [
|
||||
{
|
||||
label: 'Homepage',
|
||||
url: `${process.env.TEST_URL || 'http://host.docker.internal:3000'}/`,
|
||||
referenceUrl: '',
|
||||
readyEvent: '',
|
||||
readySelector: '',
|
||||
delay: 500,
|
||||
hideSelectors: [],
|
||||
removeSelectors: [],
|
||||
hoverSelector: '',
|
||||
clickSelector: '',
|
||||
postInteractionWait: 0,
|
||||
selectors: [],
|
||||
selectorExpansion: true,
|
||||
expect: 0,
|
||||
misMatchThreshold: 0.1,
|
||||
requireSameDimensions: true,
|
||||
},
|
||||
{
|
||||
label: '404 Error Page',
|
||||
url: `${process.env.TEST_URL || 'http://host.docker.internal:3000'}/this-page-does-not-exist`,
|
||||
delay: 500,
|
||||
misMatchThreshold: 0.1,
|
||||
},
|
||||
],
|
||||
paths: {
|
||||
bitmaps_reference: 'backstop_data/bitmaps_reference',
|
||||
bitmaps_test: 'backstop_data/bitmaps_test',
|
||||
engine_scripts: 'backstop_data/engine_scripts',
|
||||
html_report: 'backstop_data/html_report',
|
||||
ci_report: 'backstop_data/ci_report',
|
||||
},
|
||||
report: process.env.CI ? ['CI'] : ['browser'],
|
||||
engine: 'puppeteer',
|
||||
engineOptions: {
|
||||
args: ['--no-sandbox', '--disable-setuid-sandbox'],
|
||||
executablePath: process.env.CHROME_PATH || undefined, // Use explicit Chrome in CI
|
||||
},
|
||||
asyncCaptureLimit: 5,
|
||||
asyncCompareLimit: 50,
|
||||
debug: false,
|
||||
debugWindow: false,
|
||||
};
|
||||
Reference in New Issue
Block a user