From b2833044938b3374bf780a2b2ea644d768dbc022 Mon Sep 17 00:00:00 2001 From: Tero Elonen Date: Thu, 9 Jan 2025 19:27:40 +0200 Subject: [PATCH 1/2] UHF-11017: Add Image Gallery visual regression tests --- backstop/backstop_dynamic_config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backstop/backstop_dynamic_config.js b/backstop/backstop_dynamic_config.js index 89bab4946..f1c8233f5 100644 --- a/backstop/backstop_dynamic_config.js +++ b/backstop/backstop_dynamic_config.js @@ -333,6 +333,15 @@ function getConfig(hostname, protocol, type) { ], 'selectorExpansion': expandComponents, }, + { + 'label': 'DC: Image Gallery', + 'url': `${protocol}://${hostname}/en/dc-components/dc-image-gallery`, + 'removeSelectors': removeDefault, + 'selectors': [ + '.component--image-gallery' + ], + 'selectorExpansion': expandComponents, + }, { 'label': 'DC: Liftup with image', 'url': `${protocol}://${hostname}/en/dc-components/dc-liftup-with-image`, From 91677aa310a027d929165c0d83757a3d55273e4d Mon Sep 17 00:00:00 2001 From: Tero Elonen Date: Fri, 10 Jan 2025 10:58:42 +0200 Subject: [PATCH 2/2] UHF-11017: Add lower content tests for image gallery, target the content area instead of single galleries --- backstop/backstop_dynamic_config.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/backstop/backstop_dynamic_config.js b/backstop/backstop_dynamic_config.js index f1c8233f5..47ba1dc73 100644 --- a/backstop/backstop_dynamic_config.js +++ b/backstop/backstop_dynamic_config.js @@ -334,11 +334,20 @@ function getConfig(hostname, protocol, type) { 'selectorExpansion': expandComponents, }, { - 'label': 'DC: Image Gallery', + 'label': 'DC: Image Gallery, upper content area', 'url': `${protocol}://${hostname}/en/dc-components/dc-image-gallery`, 'removeSelectors': removeDefault, 'selectors': [ - '.component--image-gallery' + '.main-content' + ], + 'selectorExpansion': expandComponents, + }, + { + 'label': 'DC: Image Gallery, lower content area', + 'url': `${protocol}://${hostname}/en/dc-components/dc-image-gallery`, + 'removeSelectors': removeDefault, + 'selectors': [ + '.lower-content' ], 'selectorExpansion': expandComponents, },