Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into UHF-11235
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremysteerio committed Feb 10, 2025
2 parents 679821f + edd2f84 commit 99b0473
Show file tree
Hide file tree
Showing 63 changed files with 597 additions and 459 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/visual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
- name: Evaluate if we should re-create reference images
id: evaluate-reference-images
if: |
contains( github.event.pull_request.labels.*.name, 'recreate-reference-images') ||
contains(github.event.pull_request.labels.*.name, 'recreate-reference-images') ||
hashFiles('backstop/full/bitmaps_reference/') != '' ||
github.ref == 'refs/heads/main'
run: echo "generate-references=true" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion backstop/backstop_dynamic_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function getConfig(hostname, protocol, type) {
'.breadcrumb__container',
'.block--react-and-share',
'.footer',
'.sliding-popup-bottom',
'.hds-cc--banner',
'iframe',
];

Expand Down
34 changes: 4 additions & 30 deletions backstop/onBefore.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,6 @@
module.exports = async (page, scenario, vp, isReference, browserContext, config) => {
module.exports = async (page) => {
// Simulate the "prefers-reduced-motion: reduce" media query,
// which is a user setting that reduces animations and transitions.
// It will provide less distorted test images.
await page.emulateMedia({ reducedMotion: 'reduce' });

const { hostname } = config;

browserContext.addCookies([
{
'name': 'cookie-agreed-version',
'value': '1.1.0',
'domain': hostname,
'path': '/',
'httpOnly': false,
'secure': false
},
{
'name': 'cookie-agreed',
'value': '2',
'domain': hostname,
'path': '/',
'httpOnly': false,
'secure': false
},
{
'name': 'cookie-agreed-categories',
'value': '%5B%22essential%22%2C%22preference%22%2C%22statistics%22%2C%22marketing%22%2C%22chat%22%5D',
'domain': hostname,
'path': '/',
'httpOnly': false,
'secure': false
}
]);
};
2 changes: 1 addition & 1 deletion dist/css/nav_global.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/css/styles.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/district-and-project-search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/embedded-content-cookie-compliance.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/health-station-search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/job-search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/linkedevents.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/maternity-and-child-health-clinic-search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/news-archive.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/ploughing-schedule.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/school-search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hdbt.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ hdbt-icons:
dist/css/hdbt-icons.css: {}

embedded-content-cookie-compliance:
version: 1.0
version: 1.1
js:
dist/js/embedded-content-cookie-compliance.min.js: {
minified: true
Expand Down
Loading

0 comments on commit 99b0473

Please sign in to comment.