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

Add window.playwright disclaimer

parent b21c5f5d
No related branches found
No related tags found
No related merge requests found
Pipeline #231966 passed
...@@ -171,7 +171,8 @@ export class AuthKeycloak extends AdapterLitElement { ...@@ -171,7 +171,8 @@ export class AuthKeycloak extends AdapterLitElement {
person: this._user, 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) { if (window.Cypress || window.playwright) {
window.DBPAuth = auth; window.DBPAuth = auth;
console.log("Cypress/Playwright detected"); console.log("Cypress/Playwright detected");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment