File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ Visit multiple domains of different
66[ origin] ( https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#definition_of_an_origin )
77in a single test.
88
9- In normal use, a single Cypress test may only run commands in a single origin, a
10- limitation determined by standard web security features of the browser. The
11- ` cy.origin() ` command allows your tests to bypass this limitation.
9+ In normal use, a single Cypress test may only run commands in domains of the
10+ same origin, a limitation determined by standard web security features of the
11+ browser. The ` cy.origin() ` command allows your tests to bypass this limitation.
1212
1313<Alert type =" warning " >
1414
@@ -170,9 +170,6 @@ cy.origin(
170170)
171171```
172172
173- Note: You can just replace ` sentArgs ` with ` args ` if you want, the naming in
174- this example is purely for clarity.
175-
176173### Yielding a value
177174
178175Values returned or yielded from the callback function ** must** be serializable
@@ -487,6 +484,7 @@ before(() => {
487484
488485it (' clicks the secondary origin link' , () => {
489486 cy .origin (' somesite.com' , () => {
487+ cy .visit (' /page' )
490488 cy .clickLink (' Click Me' )
491489 })
492490})
You can’t perform that action at this time.
0 commit comments