Skip to content

Commit eb9ce51

Browse files
committed
Update cy.origin API docs with last-minute changes
1 parent 8f594fd commit eb9ce51

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

content/api/commands/origin.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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)
77
in 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

178175
Values returned or yielded from the callback function **must** be serializable
@@ -487,6 +484,7 @@ before(() => {
487484

488485
it('clicks the secondary origin link', () => {
489486
cy.origin('somesite.com', () => {
487+
cy.visit('/page')
490488
cy.clickLink('Click Me')
491489
})
492490
})

0 commit comments

Comments
 (0)