File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,10 @@ cy.get('h1').contains('My cool site under test')
63
63
``` js
64
64
const hits = getHits ()
65
65
cy .visit (' https://www.acme.com/history/founder' )
66
- // to interact with cross-origin content, move this inside cy.origin() callback
66
+ // To interact with cross-origin content, move this inside cy.origin() callback
67
67
cy .get (' h1' ).contains (' About our Founder, Marvin Acme' )
68
- cy .origin (' https://www.acme.com' , () => {
68
+ // Domain must be a precise match including subdomain, i.e. www.acme.com
69
+ cy .origin (' acme.com' , () => {
69
70
cy .visit (' /history/founder' )
70
71
cy .get (' h1' ).contains (' About our Founder, Marvin Acme' )
71
72
// Fails because hits is not passed in via args
@@ -81,7 +82,8 @@ cy.get('h1').contains('My cool site under test')
81
82
82
83
A URL specifying the secondary origin in which the callback is to be executed.
83
84
This should at the very least contain a hostname, and may also include the
84
- protocol, port number & path. Query params are not supported.
85
+ protocol, port number & path. The hostname must precisely match that of the
86
+ secondary origin, including all subdomains. Query params are not supported.
85
87
86
88
This argument will be used in two ways:
87
89
You can’t perform that action at this time.
0 commit comments