Skip to content
This repository was archived by the owner on Jun 16, 2024. It is now read-only.

Commit 933d09f

Browse files
committed
test: update snapshots
1 parent 8ae1542 commit 933d09f

File tree

6 files changed

+39
-31
lines changed

6 files changed

+39
-31
lines changed

__snapshots__/cypress.spec.ts.js

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ exports['cypress - e2e test: cypress integration 1'] = `
77
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
88
│ Cypress: *.*.* │
99
│ Browser: Electron ** (headless) │
10-
│ Specs: 4 found (compile-error.spec.js, fail.spec.js, runtime-error.spec.js, success.spec. │
11-
│ js) │
10+
│ Specs: 4 found (compile-error.spec.js, fail.spec.js, pass.spec.js, runtime-error.spec.js) │
1211
└────────────────────────────────────────────────────────────────────────────────────────────────┘
1312
1413
@@ -51,14 +50,14 @@ Fix the error in your code and re-run your tests.
5150
Running: fail.spec.js (2 of 4)
5251
5352
54-
foo
53+
fail on purpose
5554
1) fails
5655
5756
5857
0 passing (***ms)
5958
1 failing
6059
61-
1) foo
60+
1) fail on purpose
6261
fails:
6362
6463
AssertionError: expected 1 to be above 1
@@ -87,20 +86,20 @@ Fix the error in your code and re-run your tests.
8786
8887
────────────────────────────────────────────────────────────────────────────────────────────────────
8988
90-
Running: runtime-error.spec.js (3 of 4)
89+
Running: pass.spec.js (3 of 4)
9190
9291
93-
foo
94-
1) has runtime error
92+
success
93+
1) pass after ***ms
9594
9695
9796
0 passing (***ms)
9897
1 failing
9998
100-
1) foo
101-
has runtime error:
102-
Error: error thrown on purpose
103-
at Context.eval (http://localhost:****/__cypress/tests?p=cypress/integration/runtime-error.spec.js:8:13)
99+
1) success
100+
pass after ***ms:
101+
TypeError: cy.await is not a function
102+
at Context.eval (http://localhost:****/__cypress/tests?p=cypress/integration/pass.spec.js:8:10)
104103
105104
106105
@@ -116,34 +115,42 @@ Fix the error in your code and re-run your tests.
116115
│ Screenshots: 0 │
117116
│ Video: false │
118117
│ Duration: 0 seconds │
119-
│ Spec Ran: runtime-error.spec.js │
118+
│ Spec Ran: pass.spec.js
120119
└────────────────────────────────────────────────────────────────────────────────────────────────┘
121120
122121
123122
────────────────────────────────────────────────────────────────────────────────────────────────────
124123
125-
Running: success.spec.js (4 of 4)
124+
Running: runtime-error.spec.js (4 of 4)
125+
126126
127+
runtime error
128+
1) throws a error
127129
128-
foo
129-
✓ works (***ms)
130+
131+
0 passing (***ms)
132+
1 failing
133+
134+
1) runtime error
135+
throws a error:
136+
Error: error thrown on purpose
137+
at Context.eval (http://localhost:****/__cypress/tests?p=cypress/integration/runtime-error.spec.js:8:13)
130138
131139
132-
1 passing (***ms)
133140
134141
135142
(Results)
136143
137144
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
138145
│ Tests: 1 │
139-
│ Passing: 1
140-
│ Failing: 0
146+
│ Passing: 0
147+
│ Failing: 1
141148
│ Pending: 0 │
142149
│ Skipped: 0 │
143150
│ Screenshots: 0 │
144151
│ Video: false │
145152
│ Duration: 0 seconds │
146-
│ Spec Ran: success.spec.js
153+
│ Spec Ran: runtime-error.spec.js │
147154
└────────────────────────────────────────────────────────────────────────────────────────────────┘
148155
149156
@@ -158,11 +165,11 @@ Fix the error in your code and re-run your tests.
158165
├────────────────────────────────────────────────────────────────────────────────────────────────┤
159166
│ ✖ fail.spec.js ***ms 1 - 1 - - │
160167
├────────────────────────────────────────────────────────────────────────────────────────────────┤
161-
│ ✖ runtime-error.spec.js ***ms 1 - 1 - - │
168+
│ ✖ pass.spec.js ***ms 1 - 1 - - │
162169
├────────────────────────────────────────────────────────────────────────────────────────────────┤
163-
✔ success.spec.js ***ms 1 1 - - - │
170+
✖ runtime-error.spec.js ***ms 1 - 1 - - │
164171
└────────────────────────────────────────────────────────────────────────────────────────────────┘
165-
3 of 4 failed (75%) ***ms 3 1 3 - -
172+
4 of 4 failed (100%) ***ms 3 - 4 - -
166173
167174
168175
`
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
describe('foo', () => {
1+
describe('compile error', () => {
22
it('has syntax error'() => {}})
33
})

cypress/integration/fail.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
describe('foo', () => {
1+
describe('fail on purpose', () => {
22
it('fails', () => {
33
expect(1).to.be.greaterThan(1)
44
})

cypress/integration/pass.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
describe('success', () => {
2+
it('pass after 100ms', () => {
3+
cy.await(100)
4+
expect(1).to.be.greaterThan(0)
5+
})
6+
})
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
describe('foo', () => {
2-
it('has runtime error', () => {
1+
describe('runtime error', () => {
2+
it('throws a error', () => {
33
throw new Error('error thrown on purpose')
44
})
55
})

cypress/integration/success.spec.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)