Skip to content

Commit e90aa23

Browse files
authored
Merge branch 'master' into add-cypress-chrome-recorder
2 parents 2d51ade + eacec0a commit e90aa23

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

content/api/commands/origin.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,16 @@ Cypress.Commands.add('login', (username, password) => {
326326
})
327327
```
328328

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+
329339
## Notes
330340

331341
### Migrating existing tests
@@ -349,7 +359,7 @@ origins
349359

350360
```js
351361
it('logs in', () => {
352-
cy.visit('https"//supersecurelogons.com')
362+
cy.visit('https://supersecurelogons.com')
353363
cy.get('input#password').type('Password123!')
354364
cy.get('button#submit').click()
355365
})
@@ -381,7 +391,7 @@ test, like the following.
381391
```js
382392
it('securely edits content', () => {
383393
cy.origin('supersecurelogons.com', () => {
384-
cy.visit('https"//supersecurelogons.com')
394+
cy.visit('https://supersecurelogons.com')
385395
cy.get('input#password').type('Password123!')
386396
cy.get('button#submit').click()
387397
})

0 commit comments

Comments
 (0)