From 3cfbba21ee686e55a4c9fbc6a8a23a3934b32974 Mon Sep 17 00:00:00 2001
From: Patrizio Bekerle <patrizio@bekerle.com>
Date: Fri, 17 Feb 2023 10:09:01 +0100
Subject: [PATCH] Add window.playwright disclaimer

---
 packages/auth/src/auth-keycloak.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/packages/auth/src/auth-keycloak.js b/packages/auth/src/auth-keycloak.js
index 7a3f408b..a12987c2 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");
-- 
GitLab