forked from cypress-io/cypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5_stdout_spec.js
54 lines (47 loc) · 1.23 KB
/
5_stdout_spec.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
const e2e = require('../support/helpers/e2e').default
describe('e2e stdout', () => {
e2e.setup()
it('displays errors from failures', function () {
return e2e.exec(this, {
port: 2020,
snapshot: true,
spec: 'stdout_failing_spec.js',
expectedExitCode: 3,
})
})
it('displays errors from exiting early due to bundle errors', function () {
return e2e.exec(this, {
spec: 'stdout_exit_early_failing_spec.js',
snapshot: true,
expectedExitCode: 1,
onStdout: e2e.normalizeWebpackErrors,
})
})
it('does not duplicate suites or tests between visits', function () {
return e2e.exec(this, {
spec: 'stdout_passing_spec.js',
timeout: 120000,
snapshot: true,
})
})
it('respects quiet mode', function () {
return e2e.exec(this, {
spec: 'stdout_passing_spec.js',
timeout: 120000,
snapshot: true,
quiet: true,
})
})
it('displays fullname of nested specfile', function () {
return e2e.exec(this, {
port: 2020,
snapshot: true,
spec: 'nested-1/nested-2/nested-3/*',
})
})
e2e.it('displays assertion errors', {
spec: 'stdout_assertion_errors_spec.js',
snapshot: true,
expectedExitCode: 4,
})
})