From 1c4421aaa2d84d2eb0a8797001142b95f44c7640 Mon Sep 17 00:00:00 2001
From: jorgep <jorgep@verdnatura.es>
Date: Mon, 17 Mar 2025 12:18:30 +0100
Subject: [PATCH] refactor: refs #8581 remove unused checkNumber command from
 Cypress support

---
 test/cypress/support/commands.js | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js
index 8a09c31e2..eb423c619 100755
--- a/test/cypress/support/commands.js
+++ b/test/cypress/support/commands.js
@@ -505,21 +505,6 @@ Cypress.Commands.add('validateVnTableRows', (opts = {}) => {
     });
 });
 
-Cypress.Commands.add('checkNumber', (text, expectedVal, operation) => {
-    const num = parseFloat(text.trim().replace(/[^\d.-]/g, '')); // Remove the currency symbol
-    switch (operation) {
-        case 'equal':
-            expect(num).to.equal(expectedVal);
-            break;
-        case 'greater':
-            expect(num).to.be.greaterThan(expectedVal);
-            break;
-        case 'less':
-            expect(num).to.be.lessThan(expectedVal);
-            break;
-    }
-});
-
 Cypress.Commands.add('checkDate', (rawDate, expectedVal, operation) => {
     const date = moment(rawDate.trim(), 'MM/DD/YYYY');
     const compareDate = moment(expectedVal, 'DD/MM/YYYY');