Skip to content
Snippets Groups Projects
Unverified Commit b21c5f5d authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Move setting of data-auth-set

parent 0e7f6917
No related branches found
No related tags found
No related merge requests found
Pipeline #231898 passed
...@@ -171,14 +171,14 @@ export class AuthKeycloak extends AdapterLitElement { ...@@ -171,14 +171,14 @@ export class AuthKeycloak extends AdapterLitElement {
person: this._user, person: this._user,
}; };
this.setAttribute("data-auth-set", "true");
// inject a window.DBPAuth variable for Cypress/Playwright // inject a window.DBPAuth variable for Cypress/Playwright
if (window.Cypress || window.playwright) { if (window.Cypress || window.playwright) {
window.DBPAuth = auth; window.DBPAuth = auth;
console.log("Cypress/Playwright detected"); console.log("Cypress/Playwright detected");
} }
this.setAttribute("data-auth-set", "true");
this.sendSetPropertyEvent('auth', auth); this.sendSetPropertyEvent('auth', auth);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment