Skip to content

Commit 0a29f00

Browse files
committed
added a learn more section to the origin API doc page and added the video to it.
1 parent 3bf2c2a commit 0a29f00

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

content/api/commands/origin.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: origin
33
---
44

5-
<DocsVideo src="https://youtube.com/embed/Fohrq5GZSD8"></DocsVideo>
6-
75
Visit multiple domains of different
86
[origin](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#definition_of_an_origin)
97
in a single test.
@@ -328,6 +326,16 @@ Cypress.Commands.add('login', (username, password) => {
328326
})
329327
```
330328

329+
## Learn More
330+
331+
### How to Test Multiple Origins
332+
333+
<DocsVideo src="https://youtube.com/embed/Fohrq5GZSD8"></DocsVideo>
334+
335+
In this video we walk through how to test multiple origins in a single test. We
336+
also look at how to use the `cy.session()` command to cache session information
337+
and reuse it across tests.
338+
331339
## Notes
332340

333341
### Migrating existing tests
@@ -351,7 +359,7 @@ origins
351359

352360
```js
353361
it('logs in', () => {
354-
cy.visit('https"//supersecurelogons.com')
362+
cy.visit('https//supersecurelogons.com')
355363
cy.get('input#password').type('Password123!')
356364
cy.get('button#submit').click()
357365
})

0 commit comments

Comments
 (0)