Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 1m52s
Build & Deploy / 🏗️ Build (push) Successful in 4m1s
Build & Deploy / 🚀 Deploy (push) Successful in 28s
Build & Deploy / ⚡ Lighthouse (push) Successful in 3m0s
Build & Deploy / 🧪 Smoke Test (push) Successful in 3m13s
Build & Deploy / ♿ WCAG (push) Failing after 1m48s
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / 📸 Visual Diff (push) Has been cancelled
21 lines
567 B
JavaScript
21 lines
567 B
JavaScript
/* eslint-disable */
|
|
module.exports = async (page, scenario, vp) => {
|
|
console.log('SCENARIO > ' + scenario.label);
|
|
|
|
// Disable CSS animations instantly to avoid flaky screenshots
|
|
await page.evaluate(() => {
|
|
const style = document.createElement('style');
|
|
style.innerHTML = `
|
|
* {
|
|
animation: none !important;
|
|
transition: none !important;
|
|
caret-color: transparent !important;
|
|
}
|
|
`;
|
|
document.head.appendChild(style);
|
|
});
|
|
|
|
// Example: Wait for fonts to load
|
|
await page.evaluate(() => document.fonts.ready);
|
|
};
|