diff --git a/packages/auth/src/auth-keycloak.js b/packages/auth/src/auth-keycloak.js index 7a3f408b3d4f65e1596e6fa48f0edfb7edb9a50a..a12987c254873128ea379c6de66a1aaf1d7bb568 100644 --- a/packages/auth/src/auth-keycloak.js +++ b/packages/auth/src/auth-keycloak.js @@ -171,7 +171,8 @@ export class AuthKeycloak extends AdapterLitElement { person: this._user, }; - // inject a window.DBPAuth variable for Cypress/Playwright + // Inject a window.DBPAuth variable for Cypress/Playwright + // Warning: window.playwright is not set the if the browser window was just opened! if (window.Cypress || window.playwright) { window.DBPAuth = auth; console.log("Cypress/Playwright detected");