|
|
@@ -17,7 +17,7 @@ const loginUsername = Cypress.env('BRIDGE_KUBEADMIN_PASSWORD')
|
|
|
Cypress.Commands.add('login', (username: string, password: string) => {
|
|
|
// Check if auth is disabled (for a local development environment).
|
|
|
cy.visit('/'); // visits baseUrl which is set in plugins/index.js
|
|
|
- cy.window().then((win: any) => {
|
|
|
+ cy.window().then((win) => {
|
|
|
if (win.SERVER_FLAGS?.authDisabled) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -37,7 +37,7 @@ Cypress.Commands.add('login', (username: string, password: string) => {
|
|
|
|
|
|
Cypress.Commands.add('logout', () => {
|
|
|
// Check if auth is disabled (for a local development environment).
|
|
|
- cy.window().then((win: any) => {
|
|
|
+ cy.window().then((win) => {
|
|
|
if (win.SERVER_FLAGS?.authDisabled) {
|
|
|
return;
|
|
|
}
|