File tree Expand file tree Collapse file tree 4 files changed +64
-66
lines changed
examples/server-communication__visit-2nd-domain/cypress/e2e Expand file tree Collapse file tree 4 files changed +64
-66
lines changed Original file line number Diff line number Diff line change 22describe ( 'Two domains using file' , ( ) => {
33 const filename = 'test-data.json'
44
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-
175 it ( 'visits 1st domain' , ( ) => {
18- cy . visit ( 'https://www .cypress.io/' )
6+ cy . visit ( 'https://example .cypress.io/' )
197 // there are several GitHub links on the page, make sure
208 // 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 ( )
2210 . invoke ( 'attr' , 'href' )
2311 . then ( ( url ) => {
2412 expect ( url ) . to . be . a ( 'string' )
Original file line number Diff line number Diff line change 11/// <reference types="cypress" />
22describe ( '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-
153 it ( 'visits 1nd domain' , ( ) => {
16- cy . visit ( 'https://www .cypress.io/' )
4+ cy . visit ( 'https://example .cypress.io/' )
175 // there are several GitHub links on the page, make sure
186 // 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 ( )
208 . invoke ( 'attr' , 'href' )
219 . then ( ( url ) => {
2210 // save the value in the `setupNodeEvents` process
Original file line number Diff line number Diff line change 108108 "common-tags" : " 1.8.0" ,
109109 "console.table" : " 0.10.0" ,
110110 "cy-spok" : " 1.3.2" ,
111- "cypress" : " 13.15.1 " ,
111+ "cypress" : " 13.15.2 " ,
112112 "cypress-axe" : " 0.12.2" ,
113113 "cypress-expect-n-assertions" : " 1.0.0" ,
114114 "cypress-failed-log" : " 2.9.5" ,
You can’t perform that action at this time.
0 commit comments