From 0264e85aa70454f748cb82330b87d608cd1440ef Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 3 Feb 2025 10:06:41 +0100 Subject: [PATCH] test: refs #6695 handle e2e errors (better cypress config) --- test/cypress/support/index.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test/cypress/support/index.js b/test/cypress/support/index.js index c57c1a303..075e0c8eb 100644 --- a/test/cypress/support/index.js +++ b/test/cypress/support/index.js @@ -27,7 +27,17 @@ function randomNumber(options = { length: 10 }) { function randomizeValue(characterSet, options) { return Array.from({ length: options.length }, () => - characterSet.charAt(Math.floor(Math.random() * characterSet.length)) + characterSet.charAt(Math.floor(Math.random() * characterSet.length)), ).join(''); } + +const style = document.createElement('style'); +style.innerHTML = ` + * { + transition: none !important; + animation: none !important; + } +`; +document.head.appendChild(style); + export { randomString, randomNumber, randomizeValue };