diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 73c254e646fc7dbc3d7f296abf49d1f2d077fd89..95709432fcdb86b40c86b649cae78dbb9124f4bc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,6 @@
 variables:
   VERSION: ${CI_COMMIT_TAG}
-  CYPRESS_VERSION: 13.13.2
+  CYPRESS_VERSION: 13.15.0
 
 before_script:
   - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
diff --git a/commands.js b/commands.js
index 8485bede5610e7c2e931e95c6ab6e999e482ee71..ef4b73d4a7da84e6ae84463327cbdc0e332e507a 100644
--- a/commands.js
+++ b/commands.js
@@ -1,14 +1,10 @@
 Cypress.Commands.overwrite('visit', (originalFn, url, options) => {
-    options = {};
     if (Cypress.env('basicauth_user') != null) {
-        options = {
-            auth : {
-                username: Cypress.env('basicauth_user'),
-                password: Cypress.env('basicauth_pass')
-            }
+        options.auth = {
+            username: Cypress.env('basicauth_user'),
+            password: Cypress.env('basicauth_pass')
         };
     }
-
     return originalFn(url, options);
 });