Skip to content

Commit

Permalink
UHF-6187: Enabled reduced motion.
Browse files Browse the repository at this point in the history
  • Loading branch information
dire committed Oct 4, 2023
1 parent c060d2b commit 8ccb57e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backstop_data/backstop_dynamic_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ function getConfig(hostname, type) {
// }
],
'mergeImgHack': true,
// 'onBeforeScript': 'onBefore.js',
'onBeforeScript': 'onBefore.js',
// 'onReadyScript': 'puppet/onReady.js',
'paths': {
'bitmaps_reference': `backstop_data/${type}/bitmaps_reference`,
Expand Down
3 changes: 3 additions & 0 deletions backstop_data/fast/engine_scripts/onBefore.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = async (page, scenario, vp, isReference) => {
await page.emulateMedia({ reducedMotion: 'reduce' });
};
3 changes: 3 additions & 0 deletions backstop_data/full/engine_scripts/onBefore.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = async (page, scenario, vp, isReference) => {
await page.emulateMedia({ reducedMotion: 'reduce' });
};

0 comments on commit 8ccb57e

Please sign in to comment.