-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clear server session state between spec launches, add test
- Loading branch information
Showing
5 changed files
with
66 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...s/server/test/support/fixtures/projects/e2e/cypress/integration/session_persist_spec_2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* This is part 2 of the session persist spec | ||
* This part makes sure session data is cleared inbetween specs in run mode | ||
*/ | ||
|
||
describe('after running spec with saved session', () => { | ||
it('has an initially blank session on new spec', () => { | ||
cy.session('persist_session', () => { | ||
cy.setCookie('cookieName', 'cookieValue') | ||
}) | ||
|
||
return cy.wrap(null).should(() => { | ||
expect(cy.$$('.commands-container li.command:first', top.document).text()).contain('(new)') | ||
}) | ||
}) | ||
}) |