From 75223dc8846749f97d9b4dfd8e579696dfbaa9be Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle <patrizio@bekerle.com> Date: Thu, 16 Feb 2023 12:36:49 +0100 Subject: [PATCH] Set an attribute when auth data was is set --- packages/auth/src/auth-keycloak.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/auth/src/auth-keycloak.js b/packages/auth/src/auth-keycloak.js index a192faa3..f77d510f 100644 --- a/packages/auth/src/auth-keycloak.js +++ b/packages/auth/src/auth-keycloak.js @@ -166,6 +166,8 @@ export class AuthKeycloak extends AdapterLitElement { person: this._user, }; + this.setAttribute("data-auth-set", ""); + // inject a window.DBPAuth variable for Cypress/Playwright if (window.Cypress || window.playwright) { window.DBPAuth = auth; -- GitLab