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

Inject window.DBPAuth also for Playwright

parent e97039fd
No related branches found
No related tags found
No related merge requests found
Pipeline #231775 passed
...@@ -166,9 +166,11 @@ export class AuthKeycloak extends AdapterLitElement { ...@@ -166,9 +166,11 @@ export class AuthKeycloak extends AdapterLitElement {
person: this._user, person: this._user,
}; };
// inject a window.DBPAuth variable for cypress // inject a window.DBPAuth variable for Cypress/Playwright
if (window.Cypress) { console.log("window", window);
if (window.Cypress || window.playwright) {
window.DBPAuth = auth; window.DBPAuth = auth;
console.log("Cypress/Playwright detected");
} }
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