fix: run ui tests parallely

This commit is contained in:
sokumon 2026-03-18 16:07:47 +05:30
parent 8e20bf13a2
commit 4c68fae18c
3 changed files with 1562 additions and 13 deletions

View file

@ -1,6 +1,7 @@
const { defineConfig } = require("cypress");
const fs = require("fs");
const path = require("path");
const cypressSplit = require("cypress-split");
module.exports = defineConfig({
projectId: "92odwv",
@ -22,6 +23,7 @@ module.exports = defineConfig({
setupNodeEvents(on, config) {
// Delete videos for specs without failing or retried tests
// https://docs.cypress.io/guides/guides/screenshots-and-videos#Delete-videos-for-specs-without-failing-or-retried-tests
cypressSplit(on, config);
on("after:spec", (spec, results) => {
if (results && results.video) {
const failures = results.tests.some((test) =>

View file

@ -45,6 +45,7 @@
"cookie": "^0.7.0",
"cropperjs": "^1.5.12",
"cssnano": "^5.0.0",
"cypress-split": "^1.24.28",
"driver.js": "^0.9.8",
"editorjs-undo": "0.1.6",
"esbuild": "^0.14.29",
@ -94,4 +95,4 @@
"bufferutil": "^4.0.8",
"utf-8-validate": "^6.0.3"
}
}
}

1570
yarn.lock

File diff suppressed because it is too large Load diff