test: refs #6695 handle e2e errors (better cypress config)
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
38fea35f4f
commit
0264e85aa7
|
@ -27,7 +27,17 @@ function randomNumber(options = { length: 10 }) {
|
||||||
|
|
||||||
function randomizeValue(characterSet, options) {
|
function randomizeValue(characterSet, options) {
|
||||||
return Array.from({ length: options.length }, () =>
|
return Array.from({ length: options.length }, () =>
|
||||||
characterSet.charAt(Math.floor(Math.random() * characterSet.length))
|
characterSet.charAt(Math.floor(Math.random() * characterSet.length)),
|
||||||
).join('');
|
).join('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const style = document.createElement('style');
|
||||||
|
style.innerHTML = `
|
||||||
|
* {
|
||||||
|
transition: none !important;
|
||||||
|
animation: none !important;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
document.head.appendChild(style);
|
||||||
|
|
||||||
export { randomString, randomNumber, randomizeValue };
|
export { randomString, randomNumber, randomizeValue };
|
||||||
|
|
Loading…
Reference in New Issue