mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
ci: Improve Flaky Test Debugging and CAT-726 Fix (no-changelog) (#14298)
This commit is contained in:
@@ -85,6 +85,33 @@ switch (scenario) {
|
||||
},
|
||||
});
|
||||
break;
|
||||
case 'debugFlaky': {
|
||||
const filter = process.argv[3];
|
||||
const burnCount = process.argv[4] || 5;
|
||||
|
||||
const envArgs = [`burn=${burnCount}`];
|
||||
|
||||
if (filter) {
|
||||
envArgs.push(`grep=${filter}`);
|
||||
envArgs.push(`grepFilterSpecs=true`);
|
||||
}
|
||||
|
||||
const envString = envArgs.join(',');
|
||||
const testCommand = `cypress run --headless --env "${envString}"`;
|
||||
|
||||
console.log(`Executing test command: ${testCommand}`);
|
||||
|
||||
runTests({
|
||||
startCommand: 'start',
|
||||
url: 'http://localhost:5678/favicon.ico',
|
||||
testCommand: testCommand,
|
||||
customEnv: {
|
||||
CYPRESS_NODE_VIEW_VERSION: 2,
|
||||
},
|
||||
failFast: true,
|
||||
});
|
||||
break;
|
||||
}
|
||||
default:
|
||||
console.error('Unknown scenario');
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user