You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -102,6 +58,11 @@ test.describe('The banner', function () {
102
58
waitUntil: 'domcontentloaded',
103
59
region: 'GB',
104
60
preventSupportBanner: false,
61
+
overrides: {
62
+
switchOverrides: {
63
+
consentManagement: true,
64
+
},
65
+
},
105
66
});
106
67
awaitcmpAcceptAll(page);
107
68
@@ -191,14 +152,15 @@ test.describe('Banner browserId targeting', function () {
191
152
waitUntil: 'domcontentloaded',
192
153
region: 'GB',
193
154
preventSupportBanner: false,
155
+
overrides: {
156
+
switchOverrides: {
157
+
consentManagement: true,
158
+
},
159
+
},
160
+
queryParamsOn: true,
161
+
queryParams: {_sp_geo_override: 'GB-XX'},
194
162
});
195
163
196
-
constcmpReady=awaitisCmpReady(page);
197
-
expect(
198
-
cmpReady,
199
-
'CMP should be ready before running banner consent assertions.',
200
-
).toBe(true);
201
-
202
164
if(acceptConsent){
203
165
awaitcmpAcceptAll(page);
204
166
}else{
@@ -238,6 +200,12 @@ test.describe('Banner browserId targeting', function () {
238
200
inAuxiaVariant: true,
239
201
});
240
202
203
+
// CI/CD runs these tests with US geolocation, and fixing the origin to GB in loadPage is not enough for CMP initialization to conclude that the country is GDPR-applied.
204
+
// If gdprApplies is false, TCData is allowed to be minimal. If GDPR does not apply to this user in this context then only gdprApplies, tcfPolicyVersion, cmpId and cmpVersion shall exist in the object. (If GDPR does not apply to this user in this context then only gdprApplies, tcfPolicyVersion, cmpId and cmpVersion shall exist in the object.)
205
+
// @Guardian/content-management-platform uses the _sp_geo_override query parameter to override geo location in non-production environments.
0 commit comments