diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 40b3eaba20d204e8566dc155b7ab97976521da1a..f3d47016750c1d16a0241a520abffccb0b61e1b1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,6 @@
 variables:
   VERSION: ${CI_COMMIT_TAG}
-  CYPRESS_VERSION: 11.2.0
+  CYPRESS_VERSION: 12.3.0
 
 before_script:
   - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
diff --git a/commands.js b/commands.js
index 720be277b161324fe2c145739fa63c908e79476d..fce79d0ff201b5d708401cc2cc323eb22a9b7877 100644
--- a/commands.js
+++ b/commands.js
@@ -102,3 +102,19 @@ Cypress.Commands.add('assertFieldCondition', (data) => {
         }
     }
 })
+
+Cypress.Commands.add('emptyMailhogInbox', () => {
+    cy.request('DELETE', Cypress.env('mailhogUrl') + '/api/v1/messages').then((resp) => {
+        expect(resp.status).to.eq(200)
+    });
+})
+
+Cypress.Commands.add('assertMailhogInbox', (callback) => {
+    cy.request({
+        url: Cypress.env('mailhogUrl') + '/api/v2/messages',
+        accept: 'application/json'
+    }).then((resp) => {
+        expect(resp.status).to.eq(200);
+        callback(resp);
+    })
+})