From b44f74a20a06f1f3b67d14acf643d6742bc4f969 Mon Sep 17 00:00:00 2001
From: Andreas Awouters
Date: Mon, 30 Jun 2025 10:47:37 +0200
Subject: [PATCH] 119602: Port disabling of cookie popup from main
---
.github/workflows/build.yml | 2 ++
src/app/footer/footer.component.html | 4 ++--
src/app/footer/footer.component.spec.ts | 3 +++
src/app/footer/footer.component.ts | 13 ++++++++++---
src/app/shared/cookies/browser-klaro.service.ts | 7 ++++++-
src/config/default-app-config.ts | 3 ++-
src/config/info-config.interface.ts | 1 +
src/environments/environment.test.ts | 1 +
8 files changed, 27 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a72d0d6c18..7272cfcd1f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -29,6 +29,8 @@ jobs:
DSPACE_CACHE_SERVERSIDE_ANONYMOUSCACHE_MAX: 0
# Tell Cypress to run e2e tests using the same UI URL
CYPRESS_BASE_URL: http://127.0.0.1:4000
+ # Disable the cookie consent banner in e2e tests to avoid errors because of elements hidden by it
+ DSPACE_INFO_ENABLECOOKIECONSENTPOPUP: false
# When Chrome version is specified, we pin to a specific version of Chrome
# Comment this out to use the latest release
#CHROME_VERSION: "90.0.4430.212-1"
diff --git a/src/app/footer/footer.component.html b/src/app/footer/footer.component.html
index 9f7fb78ce1..3d08eadc67 100644
--- a/src/app/footer/footer.component.html
+++ b/src/app/footer/footer.component.html
@@ -63,8 +63,8 @@
href="https://www.lyrasis.org/" role="link" tabindex="0">{{ 'footer.link.lyrasis' | translate}}