fix: run ui tests parallely
This commit is contained in:
parent
8e20bf13a2
commit
4c68fae18c
3 changed files with 1562 additions and 13 deletions
|
|
@ -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) =>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue