File tree 4 files changed +64
-66
lines changed
examples/server-communication__visit-2nd-domain/cypress/e2e
4 files changed +64
-66
lines changed Original file line number Diff line number Diff line change 2
2
describe ( 'Two domains using file' , ( ) => {
3
3
const filename = 'test-data.json'
4
4
5
- Cypress . on ( 'uncaught:exception' , ( err ) => {
6
- // cypress.io has a few React exceptions related to state hydration,
7
- // but these exceptions do not impact this test
8
- // This is also true with Cannot read properties of null (reading 'addEventListener') which has to due with the osano library
9
- // that is on www.cypress.io
10
- if ( err . message . includes ( 'Minified React error' ) || err . message . includes ( `Cannot read properties of null (reading 'addEventListener')` ) ) {
11
- return false
12
- }
13
-
14
- return true
15
- } )
16
-
17
5
it ( 'visits 1st domain' , ( ) => {
18
- cy . visit ( 'https://www .cypress.io/' )
6
+ cy . visit ( 'https://example .cypress.io/' )
19
7
// there are several GitHub links on the page, make sure
20
8
// to use the selector that returns a single item
21
- cy . get ( '[href="https://github.com/cypress-io/cypress"]' ) . first ( )
9
+ cy . get ( '[href="https://github.com/cypress-io/cypress-example-kitchensink "]' ) . first ( )
22
10
. invoke ( 'attr' , 'href' )
23
11
. then ( ( url ) => {
24
12
expect ( url ) . to . be . a ( 'string' )
Original file line number Diff line number Diff line change 1
1
/// <reference types="cypress" />
2
2
describe ( 'Two domains' , ( ) => {
3
- Cypress . on ( 'uncaught:exception' , ( err ) => {
4
- // cypress.io has a few React exceptions related to state hydration,
5
- // but these exceptions do not impact this test
6
- // This is also true with Cannot read properties of null (reading 'addEventListener') which has to due with the osano library
7
- // that is on www.cypress.io
8
- if ( err . message . includes ( 'Minified React error' ) || err . message . includes ( `Cannot read properties of null (reading 'addEventListener')` ) ) {
9
- return false
10
- }
11
-
12
- return true
13
- } )
14
-
15
3
it ( 'visits 1nd domain' , ( ) => {
16
- cy . visit ( 'https://www .cypress.io/' )
4
+ cy . visit ( 'https://example .cypress.io/' )
17
5
// there are several GitHub links on the page, make sure
18
6
// to use the selector that returns a single item
19
- cy . get ( '[href="https://github.com/cypress-io/cypress"]' ) . first ( )
7
+ cy . get ( '[href="https://github.com/cypress-io/cypress-example-kitchensink "]' ) . first ( )
20
8
. invoke ( 'attr' , 'href' )
21
9
. then ( ( url ) => {
22
10
// save the value in the `setupNodeEvents` process
Original file line number Diff line number Diff line change 108
108
"common-tags" : " 1.8.0" ,
109
109
"console.table" : " 0.10.0" ,
110
110
"cy-spok" : " 1.3.2" ,
111
- "cypress" : " 13.15.1 " ,
111
+ "cypress" : " 13.15.2 " ,
112
112
"cypress-axe" : " 0.12.2" ,
113
113
"cypress-expect-n-assertions" : " 1.0.0" ,
114
114
"cypress-failed-log" : " 2.9.5" ,
You can’t perform that action at this time.
0 commit comments