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

Inject window.DBPAuth variable for cypress

parent 7ec0487f
No related branches found
No related tags found
No related merge requests found
Pipeline #16503 passed
...@@ -112,13 +112,20 @@ export class AuthKeycloak extends AdapterLitElement { ...@@ -112,13 +112,20 @@ export class AuthKeycloak extends AdapterLitElement {
} }
sendSetPropertyEvents() { sendSetPropertyEvents() {
this.sendSetPropertyEvent('auth', { const auth = {
'subject': this.subject, 'subject': this.subject,
'token': this.token, 'token': this.token,
'user-full-name': this.name, 'user-full-name': this.name,
'person-id': this.personId, 'person-id': this.personId,
'person': this.person, 'person': this.person,
}); };
// inject a window.DBPAuth variable for cypress
if (window.Cypress) {
window.DBPAuth = auth;
}
this.sendSetPropertyEvent('auth', auth);
// this.sendSetPropertyEvent('auth-subject', this.subject); // this.sendSetPropertyEvent('auth-subject', this.subject);
// this.sendSetPropertyEvent('auth-token', this.token); // this.sendSetPropertyEvent('auth-token', this.token);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment