diff --git a/cli/schema/cypress.schema.json b/cli/schema/cypress.schema.json index 617664c102..7608f6a8b9 100644 --- a/cli/schema/cypress.schema.json +++ b/cli/schema/cypress.schema.json @@ -44,6 +44,11 @@ "default": null, "description": "The reporter options used. Supported options depend on the reporter. See https://on.cypress.io/reporters#Reporter-Options" }, + "slowTestThreshold": { + "type": "number", + "default": 10000, + "description": "Slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in yellow if over the threshold. See https://on.cypress.io/configuration#Timeouts" + }, "testFiles": { "type": [ "string", diff --git a/cli/types/cypress-npm-api.d.ts b/cli/types/cypress-npm-api.d.ts index c60a347138..9356702ccf 100644 --- a/cli/types/cypress-npm-api.d.ts +++ b/cli/types/cypress-npm-api.d.ts @@ -91,6 +91,10 @@ declare namespace CypressCommandLine { * Specify mocha reporter options */ reporterOptions: any + /** + * Slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in yellow if over the threshold. + */ + slowTestThreshold: number /** * Specify the specs to run */ diff --git a/cli/types/cypress.d.ts b/cli/types/cypress.d.ts index 4e58c6e5c1..2cd7d647d8 100644 --- a/cli/types/cypress.d.ts +++ b/cli/types/cypress.d.ts @@ -2577,6 +2577,11 @@ declare namespace Cypress { * @default "spec" */ reporterOptions: { [key: string]: any } + /** + * Slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in yellow if over the threshold. + * @default 10000 + */ + slowTestThreshold: number /** * Whether Cypress will watch and restart tests on test file changes * @default true diff --git a/packages/driver/src/cypress/mocha.ts b/packages/driver/src/cypress/mocha.ts index 8b46babf1d..9450c2f1a8 100644 --- a/packages/driver/src/cypress/mocha.ts +++ b/packages/driver/src/cypress/mocha.ts @@ -500,6 +500,8 @@ const create = (specWindow, Cypress, config) => { const _mocha = createMocha(specWindow) + _mocha.slow(config('slowTestThreshold')) + const _runner = getRunner(_mocha) _mocha.suite.file = Cypress.spec.relative diff --git a/packages/driver/src/cypress/runner.ts b/packages/driver/src/cypress/runner.ts index 9fc0ce178b..97ee42be06 100644 --- a/packages/driver/src/cypress/runner.ts +++ b/packages/driver/src/cypress/runner.ts @@ -21,7 +21,7 @@ const TEST_BEFORE_RUN_EVENT = 'runner:test:before:run' const TEST_AFTER_RUN_EVENT = 'runner:test:after:run' const RUNNABLE_LOGS = 'routes agents commands hooks'.split(' ') -const RUNNABLE_PROPS = '_testConfig id order title _titlePath root hookName hookId err state failedFromHookId body speed type duration wallClockStartedAt wallClockDuration timings file originalTitle invocationDetails final currentRetry retries'.split(' ') +const RUNNABLE_PROPS = '_testConfig id order title _titlePath root hookName hookId err state failedFromHookId body speed type duration wallClockStartedAt wallClockDuration timings file originalTitle invocationDetails final currentRetry retries _slow'.split(' ') const debug = debugFn('cypress:driver:runner') const debugErrors = debugFn('cypress:driver:errors') @@ -581,6 +581,10 @@ const normalize = (runnable, tests, initialTests, onRunnable, onLogsById, getRun wrappedRunnable._testConfig = cfg } + if (cfg.slowTestThreshold) { + runnable.slow(cfg.slowTestThreshold) + } + wrappedRunnable._titlePath = runnable.titlePath() } diff --git a/packages/runner/__snapshots__/retries.mochaEvents.spec.js b/packages/runner/__snapshots__/retries.mochaEvents.spec.js index d440a0171d..58a4e7318d 100644 --- a/packages/runner/__snapshots__/retries.mochaEvents.spec.js +++ b/packages/runner/__snapshots__/retries.mochaEvents.spec.js @@ -15,7 +15,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -28,7 +29,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -43,7 +45,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -59,7 +62,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -92,7 +96,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 }, { "message": "[error message]", @@ -133,7 +138,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -147,7 +153,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -171,7 +178,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -195,7 +203,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -208,7 +217,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -233,7 +243,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -245,7 +256,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -274,7 +286,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -287,7 +300,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -303,7 +317,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -319,7 +334,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -336,7 +352,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -380,7 +397,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -396,7 +414,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -413,7 +432,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -467,7 +487,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 }, { "message": "[error message]", @@ -490,7 +511,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -507,7 +529,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -562,7 +585,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -579,7 +603,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -593,7 +618,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -610,7 +636,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -627,7 +654,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -644,7 +672,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -660,7 +689,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -677,7 +707,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -722,7 +753,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -767,7 +799,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -780,7 +813,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -826,7 +860,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -838,7 +873,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -867,7 +903,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -880,7 +917,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -896,7 +934,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -912,7 +951,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -929,7 +969,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -973,7 +1014,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -989,7 +1031,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1006,7 +1049,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1060,7 +1104,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 }, { "message": "[error message]", @@ -1083,7 +1128,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1100,7 +1146,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1155,7 +1202,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -1172,7 +1220,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1186,7 +1235,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -1203,7 +1253,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1220,7 +1271,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1237,7 +1289,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1253,7 +1306,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1270,7 +1324,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1315,7 +1370,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -1360,7 +1416,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -1373,7 +1430,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1419,7 +1477,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -1431,7 +1490,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1460,7 +1520,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1473,7 +1534,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1489,7 +1551,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1505,7 +1568,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1522,7 +1586,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1571,7 +1636,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -1587,7 +1653,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1604,7 +1671,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1620,7 +1688,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1637,7 +1706,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1653,7 +1723,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1669,7 +1740,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1730,7 +1802,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 }, { "message": "[error message]", @@ -1753,7 +1826,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1770,7 +1844,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1832,7 +1907,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -1849,7 +1925,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1863,7 +1940,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -1880,7 +1958,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1897,7 +1976,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1914,7 +1994,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1930,7 +2011,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1947,7 +2029,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1964,7 +2047,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1981,7 +2065,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1997,7 +2082,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2014,7 +2100,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2069,7 +2156,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -2124,7 +2212,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -2137,7 +2226,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2193,7 +2283,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -2205,7 +2296,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2234,7 +2326,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2247,7 +2340,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2263,7 +2357,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2279,7 +2374,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2296,7 +2392,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2350,7 +2447,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -2366,7 +2464,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2383,7 +2482,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2399,7 +2499,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2416,7 +2517,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2432,7 +2534,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2449,7 +2552,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2465,7 +2569,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2531,7 +2636,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 }, { "message": "[error message]", @@ -2562,7 +2668,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2629,7 +2736,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -2646,7 +2754,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2660,7 +2769,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -2677,7 +2787,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2694,7 +2805,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2711,7 +2823,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2728,7 +2841,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2745,7 +2859,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2769,7 +2884,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2786,7 +2902,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2834,7 +2951,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": true, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -2882,7 +3000,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": true, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -2931,7 +3050,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": true, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -2946,7 +3066,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2963,7 +3084,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2979,7 +3101,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2996,7 +3119,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3013,7 +3137,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3030,7 +3155,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3047,7 +3173,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3064,7 +3191,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3081,7 +3209,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3098,7 +3227,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3148,7 +3278,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -3198,7 +3329,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -3249,7 +3381,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -3264,7 +3397,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3281,7 +3415,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3297,7 +3432,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3314,7 +3450,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3331,7 +3468,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3348,7 +3486,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3365,7 +3504,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3382,7 +3522,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3399,7 +3540,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3416,7 +3558,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3432,7 +3575,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3449,7 +3593,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3506,7 +3651,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -3563,7 +3709,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -3621,7 +3768,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -3634,7 +3782,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3647,7 +3796,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3662,7 +3812,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3678,7 +3829,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3694,7 +3846,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3741,7 +3894,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 }, { "message": "[error message]", @@ -3772,7 +3926,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3789,7 +3944,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3806,7 +3962,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3854,7 +4011,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -3868,7 +4026,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -3892,7 +4051,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3937,7 +4097,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": false, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 }, { "message": "[error message]", @@ -3968,7 +4129,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -3985,7 +4147,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4002,7 +4165,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4048,7 +4212,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": false, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -4062,7 +4227,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "wallClockStartedAt": "match.date", "file": null, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -4086,7 +4252,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4103,7 +4270,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4120,7 +4288,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4137,7 +4306,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4173,7 +4343,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -4209,7 +4380,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -4246,7 +4418,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -4259,7 +4432,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4272,7 +4446,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4287,7 +4462,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4303,7 +4479,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4320,7 +4497,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4337,7 +4515,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4370,7 +4549,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -4403,7 +4583,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -4416,7 +4597,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4450,7 +4632,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -4462,7 +4645,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4491,7 +4675,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4504,7 +4689,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4520,7 +4706,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4536,7 +4723,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4562,7 +4750,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "originalTitle": "\"before all\" hook", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 }, { "message": "[error message]", @@ -4585,7 +4774,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4602,7 +4792,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4615,7 +4806,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4660,7 +4852,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -4706,7 +4899,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -4718,7 +4912,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4747,7 +4942,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4760,7 +4956,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4776,7 +4973,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4792,7 +4990,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4809,7 +5008,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4870,7 +5070,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -4886,7 +5087,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4903,7 +5105,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4919,7 +5122,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4936,7 +5140,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4952,7 +5157,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4969,7 +5175,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -4985,7 +5192,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5002,7 +5210,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5018,7 +5227,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5044,7 +5254,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "originalTitle": "\"after all\" hook", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 }, { "message": "[error message]", @@ -5124,7 +5335,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -5137,7 +5349,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5211,7 +5424,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 10000 } ], [ @@ -5223,7 +5437,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5252,7 +5467,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5265,7 +5481,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5281,7 +5498,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5297,7 +5515,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5314,7 +5533,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5358,7 +5578,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -5374,7 +5595,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5391,7 +5613,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5407,7 +5630,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5424,7 +5648,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5471,7 +5696,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -5518,7 +5744,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -5566,7 +5793,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -5581,7 +5809,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5598,7 +5827,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5614,7 +5844,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5631,7 +5862,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5678,7 +5910,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 }, { "message": "[error message]", @@ -5702,7 +5935,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5719,7 +5953,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5767,7 +6002,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -5784,7 +6020,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5798,7 +6035,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -5815,7 +6053,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5860,7 +6099,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "final": false, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 }, { "message": "[error message]", @@ -5884,7 +6124,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5901,7 +6142,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5947,7 +6189,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "final": false, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -5964,7 +6207,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -5978,7 +6222,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "wallClockStartedAt": "match.date", "file": null, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -5995,7 +6240,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6012,7 +6258,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6029,7 +6276,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6067,7 +6315,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -6105,7 +6354,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -6144,7 +6394,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -6159,7 +6410,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6176,7 +6428,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6192,7 +6445,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6209,7 +6463,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6226,7 +6481,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6243,7 +6499,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6259,7 +6516,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6276,7 +6534,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6323,7 +6582,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -6370,7 +6630,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -6383,7 +6644,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6431,7 +6693,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -6443,7 +6706,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6476,8 +6740,8 @@ exports['src/cypress/runner retries mochaEvents screenshots retry screenshot in "height": 660 }, "scaled": false, - "overwrite": false, "blackout": [], + "overwrite": false, "startTime": "match.string", "current": 1, "total": 1 @@ -6496,133 +6760,6 @@ exports['src/cypress/runner retries mochaEvents screenshots retry screenshot in "overwrite": false } -exports['serialize state - retries'] = { - "currentId": "r6", - "tests": { - "r3": { - "id": "r3", - "order": 1, - "title": "test 1", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": 1, - "wallClockStartedAt": "1970-01-01T00:00:00.000Z", - "wallClockDuration": 1, - "timings": { - "lifecycle": 1, - "before all": [ - { - "hookId": "h1", - "fnDuration": 1, - "afterFnDuration": 1 - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": 1, - "afterFnDuration": 1 - } - ], - "test": { - "fnDuration": 1, - "afterFnDuration": 1 - }, - "after each": [ - { - "hookId": "h4", - "fnDuration": 1, - "afterFnDuration": 1 - } - ], - "after all": [ - { - "hookId": "h3", - "fnDuration": 1, - "afterFnDuration": 1 - } - ] - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 1, - "hooks": [], - "prevAttempts": [] - }, - "r5": { - "id": "r5", - "title": "test 1", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": 1, - "wallClockStartedAt": "1970-01-01T00:00:00.000Z", - "wallClockDuration": 1, - "timings": { - "lifecycle": 1, - "test": { - "fnDuration": 1, - "afterFnDuration": 1 - } - }, - "file": null, - "final": true, - "currentRetry": 1, - "retries": 1, - "prevAttempts": [ - { - "id": "r5", - "order": 2, - "title": "test 1", - "err": "{Object 9}", - "state": "failed", - "body": "[body]", - "type": "test", - "duration": 1, - "wallClockStartedAt": "1970-01-01T00:00:00.000Z", - "wallClockDuration": 1, - "timings": { - "lifecycle": 1, - "test": { - "fnDuration": 1, - "afterFnDuration": 1 - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": false, - "currentRetry": 0, - "retries": 1, - "hooks": [] - } - ] - } - }, - "startTime": "1970-01-01T00:00:00.000Z", - "emissions": { - "started": { - "r1": true, - "r2": true, - "r3": true, - "r4": true, - "r5": true, - "r6": true - }, - "ended": { - "r3": true, - "r2": true, - "r5": true - } - }, - "passed": 2, - "failed": 0, - "pending": 0, - "numLogs": 0 -} - exports['src/cypress/runner retries mochaEvents cleanses errors before emitting does not try to serialize error with err.actual as DOM node #1'] = [ [ "mocha", @@ -6640,7 +6777,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6655,7 +6793,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6671,7 +6810,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6704,7 +6844,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 }, { "message": "[error message]", @@ -6745,7 +6886,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -6759,7 +6901,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -6790,7 +6933,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "file": null, "final": false, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 }, { "message": "[error message]", @@ -6829,7 +6973,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "file": null, "final": false, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -6843,7 +6988,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "wallClockStartedAt": "match.date", "file": null, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -6873,7 +7019,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting }, "file": null, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 10000 }, { "message": "[error message]", @@ -6911,7 +7058,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -6943,7 +7091,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 10000 } ], [ @@ -6955,7 +7104,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -6966,3 +7116,28 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting } ] ] + +exports['serialize state - retries'] = { + "currentId": "r6", + "tests": "{Object 2}", + "startTime": "1970-01-01T00:00:00.000Z", + "emissions": { + "started": { + "r1": true, + "r2": true, + "r3": true, + "r4": true, + "r5": true, + "r6": true + }, + "ended": { + "r3": true, + "r2": true, + "r5": true + } + }, + "passed": 2, + "failed": 0, + "pending": 0, + "numLogs": 0 +} diff --git a/packages/runner/__snapshots__/runner.mochaEvents.spec.js b/packages/runner/__snapshots__/runner.mochaEvents.spec.js index ab30d3da35..8aa18f1f22 100644 --- a/packages/runner/__snapshots__/runner.mochaEvents.spec.js +++ b/packages/runner/__snapshots__/runner.mochaEvents.spec.js @@ -15,7 +15,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -28,7 +29,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -44,7 +46,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -60,7 +63,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -86,7 +90,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "originalTitle": "\"before all\" hook", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 }, { "message": "[error message]", @@ -106,7 +111,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -144,7 +150,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -183,7 +190,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -195,7 +203,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -224,7 +233,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -237,7 +247,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -252,7 +263,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -268,7 +280,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -284,7 +297,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -310,7 +324,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "originalTitle": "\"before each\" hook", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 }, { "message": "[error message]", @@ -355,7 +370,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -368,7 +384,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -407,7 +424,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -419,7 +437,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -448,7 +467,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -461,7 +481,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -476,7 +497,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -492,7 +514,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -508,7 +531,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -534,7 +558,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "originalTitle": "\"after each\" hook", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 }, { "message": "[error message]", @@ -583,7 +608,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -596,7 +622,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -639,7 +666,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -651,7 +679,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -680,7 +709,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -693,7 +723,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -708,7 +739,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -724,7 +756,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -750,7 +783,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -776,7 +810,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -803,7 +838,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -818,7 +854,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -834,7 +871,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -850,7 +888,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -876,7 +915,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "originalTitle": "\"after all\" hook", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 }, { "message": "[error message]", @@ -925,7 +965,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -938,7 +979,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -981,7 +1023,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -993,7 +1036,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1022,7 +1066,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1035,7 +1080,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1051,7 +1097,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1067,7 +1114,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1084,7 +1132,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1135,7 +1184,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -1151,7 +1201,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1168,7 +1219,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1228,7 +1280,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 }, { "message": "[error message]", @@ -1251,7 +1304,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1268,7 +1322,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1284,7 +1339,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1301,7 +1357,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1362,7 +1419,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -1375,7 +1433,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1437,7 +1496,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -1449,7 +1509,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1478,7 +1539,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1491,7 +1553,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1507,7 +1570,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1523,7 +1587,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1540,7 +1605,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1591,7 +1657,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -1607,7 +1674,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1624,7 +1692,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1640,7 +1709,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1657,7 +1727,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1673,7 +1744,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1690,7 +1762,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1744,7 +1817,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -1798,7 +1872,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -1811,7 +1886,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1866,7 +1942,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -1878,7 +1955,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1939,8 +2017,8 @@ exports['src/cypress/runner other specs screenshots screenshot after failed test "height": 660 }, "scaled": true, - "overwrite": false, "blackout": [], + "overwrite": false, "startTime": "1970-01-01T00:00:00.000Z" } ] @@ -1963,7 +2041,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1976,7 +2055,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -1991,7 +2071,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2007,7 +2088,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2033,7 +2115,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2059,7 +2142,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2072,7 +2156,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2099,7 +2184,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2111,7 +2197,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2140,7 +2227,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2153,7 +2241,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2169,7 +2258,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2185,7 +2275,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2202,7 +2293,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2246,7 +2338,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2262,7 +2355,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2279,7 +2373,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2295,7 +2390,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2312,7 +2408,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2359,7 +2456,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2406,7 +2504,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2454,7 +2553,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2469,7 +2569,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2486,7 +2587,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2502,7 +2604,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2519,7 +2622,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2536,7 +2640,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2553,7 +2658,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2593,7 +2699,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2633,7 +2740,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2674,7 +2782,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2689,7 +2798,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2706,7 +2816,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2722,7 +2833,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2739,7 +2851,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2756,7 +2869,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2773,7 +2887,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2789,7 +2904,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2806,7 +2922,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2853,7 +2970,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2900,7 +3018,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2913,7 +3032,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2961,7 +3081,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2973,7 +3094,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ diff --git a/packages/runner/__snapshots__/studio.mochaEvents.spec.js b/packages/runner/__snapshots__/studio.mochaEvents.spec.js index ebb6612843..7f02cccca6 100644 --- a/packages/runner/__snapshots__/studio.mochaEvents.spec.js +++ b/packages/runner/__snapshots__/studio.mochaEvents.spec.js @@ -15,7 +15,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -28,7 +29,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -43,7 +45,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -59,7 +62,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -85,7 +89,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -111,7 +116,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -124,7 +130,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -151,7 +158,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -163,7 +171,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -192,7 +201,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -205,7 +215,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -219,7 +230,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "type": "test", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -234,7 +246,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "wallClockStartedAt": "match.date", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -259,7 +272,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -284,7 +298,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -297,7 +312,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -323,7 +339,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -335,2022 +352,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events hooks runs before hooks and test body but not after hooks when extending test #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "hook", - { - "id": "r3", - "title": "\"before all\" hook", - "hookName": "before all", - "hookId": "h1", - "body": "[body]", - "type": "hook", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r3", - "order": 1, - "title": "test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "hook end", - { - "id": "r3", - "title": "\"before all\" hook", - "hookName": "before all", - "hookId": "h1", - "body": "[body]", - "type": "hook", - "duration": "match.number", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r3", - "order": 1, - "title": "test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "hook", - { - "id": "r3", - "title": "\"before each\" hook", - "hookName": "before each", - "hookId": "h2", - "body": "[body]", - "type": "hook", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "hook end", - { - "id": "r3", - "title": "\"before each\" hook", - "hookName": "before each", - "hookId": "h2", - "body": "[body]", - "type": "hook", - "duration": "match.number", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r3", - "order": 1, - "title": "test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r3", - "order": 1, - "title": "test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r3", - "order": 1, - "title": "test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events hooks runs before hooks but not after hooks when adding to suite #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "hook", - { - "id": "r3", - "title": "\"before all\" hook", - "hookName": "before all", - "hookId": "h1", - "body": "[body]", - "type": "hook", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r3", - "order": 1, - "title": "New Test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "hook end", - { - "id": "r3", - "title": "\"before all\" hook", - "hookName": "before all", - "hookId": "h1", - "body": "[body]", - "type": "hook", - "duration": "match.number", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r3", - "order": 1, - "title": "New Test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "hook", - { - "id": "r3", - "title": "\"before each\" hook", - "hookName": "before each", - "hookId": "h2", - "body": "[body]", - "type": "hook", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "hook end", - { - "id": "r3", - "title": "\"before each\" hook", - "hookName": "before each", - "hookId": "h2", - "body": "[body]", - "type": "hook", - "duration": "match.number", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r3", - "order": 1, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r3", - "order": 1, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r3", - "order": 1, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only test can be extended #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r3", - "title": "nested suite 1", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r4", - "order": 1, - "title": "test 2", - "body": "[body]", - "type": "test", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r4", - "order": 1, - "title": "test 2", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r4", - "order": 1, - "title": "test 2", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r4", - "order": 1, - "title": "test 2", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r3", - "title": "nested suite 1", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r4", - "order": 1, - "title": "test 2", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only test can be extended when there are multiple in the spec #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r3", - "title": "nested suite 1", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r5", - "order": 1, - "title": "test 2", - "body": "[body]", - "type": "test", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r5", - "order": 1, - "title": "test 2", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r5", - "order": 1, - "title": "test 2", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r5", - "order": 1, - "title": "test 2", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r3", - "title": "nested suite 1", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r5", - "order": 1, - "title": "test 2", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only test can extend a suite that contains an only spec #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r3", - "title": "nested suite 1", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r8", - "order": 2, - "title": "New Test", - "body": "[body]", - "type": "test", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r8", - "order": 2, - "title": "New Test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r8", - "order": 2, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r8", - "order": 2, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r3", - "title": "nested suite 1", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r8", - "order": 2, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only suite can be added to #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r3", - "title": "nested suite 2", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r8", - "order": 4, - "title": "New Test", - "body": "[body]", - "type": "test", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r8", - "order": 4, - "title": "New Test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r8", - "order": 4, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r8", - "order": 4, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r3", - "title": "nested suite 2", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r8", - "order": 4, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only suite can be added to when there are multiple in the spec #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r4", - "title": "nested suite 3", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r11", - "order": 6, - "title": "New Test", - "body": "[body]", - "type": "test", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r11", - "order": 6, - "title": "New Test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r11", - "order": 6, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r11", - "order": 6, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r4", - "title": "nested suite 3", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r11", - "order": 6, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only suite can extend a test within an only suite #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r3", - "title": "nested suite 2", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r7", - "order": 1, - "title": "test 3", - "body": "[body]", - "type": "test", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r7", - "order": 1, - "title": "test 3", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r7", - "order": 1, - "title": "test 3", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r7", - "order": 1, - "title": "test 3", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r3", - "title": "nested suite 2", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r7", - "order": 1, - "title": "test 3", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only suite can extend a test within an only suite when there are multiple in the spec #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r4", - "title": "nested suite 3", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r10", - "order": 1, - "title": "test 5", - "body": "[body]", - "type": "test", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r10", - "order": 1, - "title": "test 5", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r10", - "order": 1, - "title": "test 5", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r10", - "order": 1, - "title": "test 5", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r4", - "title": "nested suite 3", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r10", - "order": 1, - "title": "test 5", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2379,7 +382,8 @@ exports['studio mocha events can add new test to root runnable #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2392,7 +396,8 @@ exports['studio mocha events can add new test to root runnable #1'] = [ "body": "[body]", "type": "test", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2406,7 +411,8 @@ exports['studio mocha events can add new test to root runnable #1'] = [ "type": "test", "wallClockStartedAt": "match.date", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 10000 } ], [ @@ -2430,7 +436,8 @@ exports['studio mocha events can add new test to root runnable #1'] = [ }, "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2454,7 +461,8 @@ exports['studio mocha events can add new test to root runnable #1'] = [ }, "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2479,7 +487,8 @@ exports['studio mocha events can add new test to root runnable #1'] = [ }, "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 10000 } ], [ @@ -2491,7 +500,2126 @@ exports['studio mocha events can add new test to root runnable #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events hooks runs before hooks and test body but not after hooks when extending test #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "hook", + { + "id": "r3", + "title": "\"before all\" hook", + "hookName": "before all", + "hookId": "h1", + "body": "[body]", + "type": "hook", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r3", + "order": 1, + "title": "test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "hook end", + { + "id": "r3", + "title": "\"before all\" hook", + "hookName": "before all", + "hookId": "h1", + "body": "[body]", + "type": "hook", + "duration": "match.number", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test", + { + "id": "r3", + "order": 1, + "title": "test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "hook", + { + "id": "r3", + "title": "\"before each\" hook", + "hookName": "before each", + "hookId": "h2", + "body": "[body]", + "type": "hook", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "hook end", + { + "id": "r3", + "title": "\"before each\" hook", + "hookName": "before each", + "hookId": "h2", + "body": "[body]", + "type": "hook", + "duration": "match.number", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "pass", + { + "id": "r3", + "order": 1, + "title": "test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "test end", + { + "id": "r3", + "order": 1, + "title": "test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r3", + "order": 1, + "title": "test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events hooks runs before hooks but not after hooks when adding to suite #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "hook", + { + "id": "r3", + "title": "\"before all\" hook", + "hookName": "before all", + "hookId": "h1", + "body": "[body]", + "type": "hook", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r3", + "order": 1, + "title": "New Test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "hook end", + { + "id": "r3", + "title": "\"before all\" hook", + "hookName": "before all", + "hookId": "h1", + "body": "[body]", + "type": "hook", + "duration": "match.number", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test", + { + "id": "r3", + "order": 1, + "title": "New Test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "hook", + { + "id": "r3", + "title": "\"before each\" hook", + "hookName": "before each", + "hookId": "h2", + "body": "[body]", + "type": "hook", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "hook end", + { + "id": "r3", + "title": "\"before each\" hook", + "hookName": "before each", + "hookId": "h2", + "body": "[body]", + "type": "hook", + "duration": "match.number", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "pass", + { + "id": "r3", + "order": 1, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "test end", + { + "id": "r3", + "order": 1, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r3", + "order": 1, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only test can be extended #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r3", + "title": "nested suite 1", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test", + { + "id": "r4", + "order": 1, + "title": "test 2", + "body": "[body]", + "type": "test", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r4", + "order": 1, + "title": "test 2", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "pass", + { + "id": "r4", + "order": 1, + "title": "test 2", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "test end", + { + "id": "r4", + "order": 1, + "title": "test 2", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r3", + "title": "nested suite 1", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r4", + "order": 1, + "title": "test 2", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only test can be extended when there are multiple in the spec #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r3", + "title": "nested suite 1", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test", + { + "id": "r5", + "order": 1, + "title": "test 2", + "body": "[body]", + "type": "test", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r5", + "order": 1, + "title": "test 2", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "pass", + { + "id": "r5", + "order": 1, + "title": "test 2", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "test end", + { + "id": "r5", + "order": 1, + "title": "test 2", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r3", + "title": "nested suite 1", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r5", + "order": 1, + "title": "test 2", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only test can extend a suite that contains an only spec #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r3", + "title": "nested suite 1", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test", + { + "id": "r8", + "order": 2, + "title": "New Test", + "body": "[body]", + "type": "test", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r8", + "order": 2, + "title": "New Test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "pass", + { + "id": "r8", + "order": 2, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "test end", + { + "id": "r8", + "order": 2, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r3", + "title": "nested suite 1", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r8", + "order": 2, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only suite can be added to #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r3", + "title": "nested suite 2", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test", + { + "id": "r8", + "order": 4, + "title": "New Test", + "body": "[body]", + "type": "test", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r8", + "order": 4, + "title": "New Test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "pass", + { + "id": "r8", + "order": 4, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "test end", + { + "id": "r8", + "order": 4, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r3", + "title": "nested suite 2", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r8", + "order": 4, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only suite can be added to when there are multiple in the spec #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r4", + "title": "nested suite 3", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test", + { + "id": "r11", + "order": 6, + "title": "New Test", + "body": "[body]", + "type": "test", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r11", + "order": 6, + "title": "New Test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "pass", + { + "id": "r11", + "order": 6, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "test end", + { + "id": "r11", + "order": 6, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r4", + "title": "nested suite 3", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r11", + "order": 6, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only suite can extend a test within an only suite #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r3", + "title": "nested suite 2", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test", + { + "id": "r7", + "order": 1, + "title": "test 3", + "body": "[body]", + "type": "test", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r7", + "order": 1, + "title": "test 3", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "pass", + { + "id": "r7", + "order": 1, + "title": "test 3", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "test end", + { + "id": "r7", + "order": 1, + "title": "test 3", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r3", + "title": "nested suite 2", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r7", + "order": 1, + "title": "test 3", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only suite can extend a test within an only suite when there are multiple in the spec #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite", + { + "id": "r4", + "title": "nested suite 3", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test", + { + "id": "r10", + "order": 1, + "title": "test 5", + "body": "[body]", + "type": "test", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r10", + "order": 1, + "title": "test 5", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "pass", + { + "id": "r10", + "order": 1, + "title": "test 5", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "test end", + { + "id": "r10", + "order": 1, + "title": "test 5", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r4", + "title": "nested suite 3", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 10000 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r10", + "order": 1, + "title": "test 5", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 10000 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 10000 } ], [ diff --git a/packages/server/lib/config.ts b/packages/server/lib/config.ts index 16e460e93e..4edf8fedc1 100644 --- a/packages/server/lib/config.ts +++ b/packages/server/lib/config.ts @@ -257,6 +257,11 @@ export function mergeDefaults (config: Record = {}, options: Record _.defaults(config, defaultValues) + // Default values can be functions, in which case they are evaluated + // at runtime - for example, slowTestThreshold where the default value + // varies between e2e and component testing. + config = _.mapValues(config, (value) => (typeof value === 'function' ? value(options) : value)) + // split out our own app wide env from user env variables // and delete envFile config.env = parseEnv(config, options.env, resolved) @@ -279,7 +284,7 @@ export function mergeDefaults (config: Record = {}, options: Record config.numTestsKeptInMemory = 0 } - config = setResolvedConfigValues(config, defaultValues, resolved) + config = setResolvedConfigValues(config, defaultValues, resolved, options) if (config.port) { config = setUrls(config) @@ -304,10 +309,10 @@ export function mergeDefaults (config: Record = {}, options: Record .then(_.partialRight(setNodeBinary, options.onWarning)) } -export function setResolvedConfigValues (config, defaults, resolved) { +export function setResolvedConfigValues (config, defaults, resolved, options) { const obj = _.clone(config) - obj.resolved = resolveConfigValues(config, defaults, resolved) + obj.resolved = resolveConfigValues(config, defaults, resolved, options) debug('resolved config is %o', obj.resolved.browsers) return obj @@ -412,7 +417,7 @@ export function updateWithPluginValues (cfg, overrides) { // combines the default configuration object with values specified in the // configuration file like "cypress.json". Values in configuration file // overwrite the defaults. -export function resolveConfigValues (config, defaults, resolved = {}) { +export function resolveConfigValues (config, defaults, resolved = {}, options = {}) { // pick out only known configuration keys return _ .chain(config) @@ -436,7 +441,9 @@ export function resolveConfigValues (config, defaults, resolved = {}) { return source(r) } - if (!(!_.isEqual(config[key], defaults[key]) && key !== 'browsers')) { + const defaultValue = typeof defaults[key] === 'function' ? defaults[key](options) : defaults[key] + + if (!(!_.isEqual(config[key], defaultValue) && key !== 'browsers')) { // "browsers" list is special, since it is dynamic by default // and can only be ovewritten via plugins file return source('default') diff --git a/packages/server/lib/config_options.ts b/packages/server/lib/config_options.ts index 2c02b10dad..8a39f52b4b 100644 --- a/packages/server/lib/config_options.ts +++ b/packages/server/lib/config_options.ts @@ -216,6 +216,10 @@ export const options = [ defaultValue: 'cypress/screenshots', validation: v.isStringOrFalse, isFolder: true, + }, { + name: 'slowTestThreshold', + defaultValue: (options: Record) => options.testingType === 'component' ? 250 : 10000, + validation: v.isNumber, }, { name: 'socketId', defaultValue: null, diff --git a/packages/server/lib/reporter.js b/packages/server/lib/reporter.js index f4b09fad4f..5c5b6135c8 100644 --- a/packages/server/lib/reporter.js +++ b/packages/server/lib/reporter.js @@ -8,6 +8,7 @@ const Mocha = require('mocha-7.0.1') const mochaReporters = require('mocha-7.0.1/lib/reporters') const mochaCreateStatsCollector = require('mocha-7.0.1/lib/stats-collector') const mochaColor = mochaReporters.Base.color +const mochaSymbols = mochaReporters.Base.symbols const debug = require('debug')('cypress:server:reporter') const Promise = require('bluebird') @@ -293,6 +294,34 @@ class Reporter { reporterOptions: this.reporterOptions, }) + if (this.reporterName === 'spec') { + // Unfortunately the reporter doesn't expose its indentation logic, so we have to replicate it here + let indents = 0 + + this.runner.on('suite', function (suite) { + ++indents + }) + + this.runner.on('suite end', function () { + --indents + }) + + // Override the default reporter to always show test timing even for fast tests + // and display slow ones in yellow rather than red + this.runner._events.pass[2] = function (test) { + const durationColor = test.speed === 'slow' ? 'medium' : 'fast' + const fmt = + Array(indents).join(' ') + + mochaColor('checkmark', ` ${ mochaSymbols.ok}`) + + mochaColor('pass', ' %s') + + mochaColor(durationColor, ' (%dms)') + + // Log: `✓ test title (300ms)` when a test passes + // eslint-disable-next-line no-console + console.log(fmt, test.title, test.duration) + } + } + this.runner.ignoreLeaks = true } diff --git a/packages/server/test/unit/browsers/browsers_spec.js b/packages/server/test/unit/browsers/browsers_spec.js index 4633589351..f6fa070ba3 100644 --- a/packages/server/test/unit/browsers/browsers_spec.js +++ b/packages/server/test/unit/browsers/browsers_spec.js @@ -5,7 +5,7 @@ const utils = require(`${root}../lib/browsers/utils`) const snapshot = require('snap-shot-it') const normalizeBrowsers = (message) => { - return message.replace(/(found on your system are:)((\n.*)*)/, '$1\n- chrome\n- firefox\n- electron') + return message.replace(/(found on your system are:)(?:\n- .*)*/, '$1\n- chrome\n- firefox\n- electron') } // When we added component testing mode, we added the option for electron to be omitted diff --git a/packages/server/test/unit/config_spec.js b/packages/server/test/unit/config_spec.js index 76b0819510..6805ce8bad 100644 --- a/packages/server/test/unit/config_spec.js +++ b/packages/server/test/unit/config_spec.js @@ -1079,6 +1079,14 @@ describe('lib/config', () => { } }) + it('slowTestThreshold=10000 for e2e', function () { + return this.defaults('slowTestThreshold', 10000, {}, { testingType: 'e2e' }) + }) + + it('slowTestThreshold=250 for component', function () { + return this.defaults('slowTestThreshold', 250, {}, { testingType: 'component' }) + }) + it('port=null', function () { return this.defaults('port', null) }) @@ -1462,6 +1470,7 @@ describe('lib/config', () => { retries: { value: { runMode: 0, openMode: 0 }, from: 'default' }, screenshotOnRunFailure: { value: true, from: 'default' }, screenshotsFolder: { value: 'cypress/screenshots', from: 'default' }, + slowTestThreshold: { value: 10000, from: 'default' }, supportFile: { value: 'cypress/support', from: 'default' }, taskTimeout: { value: 60000, from: 'default' }, testFiles: { value: '**/*.*', from: 'default' }, @@ -1568,6 +1577,7 @@ describe('lib/config', () => { retries: { value: { runMode: 0, openMode: 0 }, from: 'default' }, screenshotOnRunFailure: { value: true, from: 'default' }, screenshotsFolder: { value: 'cypress/screenshots', from: 'default' }, + slowTestThreshold: { value: 10000, from: 'default' }, supportFile: { value: 'cypress/support', from: 'default' }, taskTimeout: { value: 60000, from: 'default' }, testFiles: { value: '**/*.*', from: 'default' }, diff --git a/packages/server/test/unit/reporter_spec.js b/packages/server/test/unit/reporter_spec.js index c84db90e43..5af7e89b04 100644 --- a/packages/server/test/unit/reporter_spec.js +++ b/packages/server/test/unit/reporter_spec.js @@ -111,7 +111,6 @@ describe('lib/reporter', () => { it('recursively creates suites for fullTitle', function () { const args = this.reporter.parseArgs('fail', [this.testObj]) - console.log(args) expect(args[0]).to.eq('fail') const title = 'TodoMVC - React When page is initially opened should focus on the todo input field' diff --git a/system-tests/projects/e2e/cypress/integration/slowTestThreshold_spec.js b/system-tests/projects/e2e/cypress/integration/slowTestThreshold_spec.js new file mode 100644 index 0000000000..eac2617bed --- /dev/null +++ b/system-tests/projects/e2e/cypress/integration/slowTestThreshold_spec.js @@ -0,0 +1,16 @@ +/* eslint-disable no-undef */ +describe('slowTestThreshold', () => { + it('passes inherited', () => { + cy.wait(5) + cy.wrap(true).should('be.true') + }) + + it('passes quickly', { slowTestThreshold: 10000 }, () => { + cy.wrap(true).should('be.true') + }) + + it('passes slowly', { slowTestThreshold: 1 }, () => { + cy.wait(5) + cy.wrap(true).should('be.true') + }) +}) diff --git a/system-tests/test/reporters_spec.js b/system-tests/test/reporters_spec.js index eb0b65b943..1db4b14726 100644 --- a/system-tests/test/reporters_spec.js +++ b/system-tests/test/reporters_spec.js @@ -145,4 +145,21 @@ describe('e2e reporters', () => { reporterOptions: 'topLevelSuite=top suite,flowId=12345,useStdError=\'true\',useStdError=\'true\',recordHookFailures=\'true\',actualVsExpected=\'true\'', }) }) + + it('shows slow tests in yellow', function () { + return systemTests.exec(this, { + spec: 'slowTestThreshold_spec.js', + snapshot: false, + config: { + slowTestThreshold: 1, + }, + processEnv: { + MOCHA_COLORS: 1, + }, + }).then((result) => { + expect(result.stdout.match(/passes inherited(.*)/)[1]).to.contain('\u001b[33m') + expect(result.stdout.match(/passes quickly(.*)/)[1]).not.to.contain('\u001b[33m') + expect(result.stdout.match(/passes slowly(.*)/)[1]).to.contain('\u001b[33m') + }) + }) })