From 0fd4fae1b74427dedfce4828d3dcf10e673c155c Mon Sep 17 00:00:00 2001 From: Naveen Valecha Date: Wed, 26 Jun 2024 11:22:12 +0530 Subject: [PATCH] Issue-66: Change : to - in keys in Topics, Persons, and Audience. --- cypress/e2e/profilers/location_country.js | 4 ++-- example/profiler.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cypress/e2e/profilers/location_country.js b/cypress/e2e/profilers/location_country.js index dce3ae2..a2cc7c2 100644 --- a/cypress/e2e/profilers/location_country.js +++ b/cypress/e2e/profilers/location_country.js @@ -11,7 +11,7 @@ describe('Location country Profiler: Test 01', () => { }) cy.getLocalStorage('location_zone') .then($location_zone => { - expect($location_zone).to.equal('zone:australia') + expect($location_zone).to.equal('-australia') }) // Set the location country cookie. cy.setCookie('cp_country', 'IN', { @@ -25,7 +25,7 @@ describe('Location country Profiler: Test 01', () => { }) cy.getLocalStorage('location_zone') .then($location_zone => { - expect($location_zone).to.equal('zone:international') + expect($location_zone).to.equal('zone-international') }) }) }); diff --git a/example/profiler.js b/example/profiler.js index 9425872..c9edf7f 100644 --- a/example/profiler.js +++ b/example/profiler.js @@ -1244,11 +1244,11 @@ window.drupalSettings.convivialProfiler = { { "type": "map", "storage_key": "location_zone", - "default_value": "zone:australia", - "fallback_value": "zone:international", + "default_value": "zone-australia", + "fallback_value": "zone-international", "mappings": [ - "Australia|zone:australia", - "AU|zone:australia" + "Australia|zone-australia", + "AU|zone-australia" ] } ],