From 025f33a91f7718a593a7be07c77543e6f39d71e9 Mon Sep 17 00:00:00 2001 From: Haldun Anil Date: Wed, 9 Dec 2020 11:07:12 -0500 Subject: [PATCH] docs: fix incorrect references in cypress docs (#932) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use stale label, instead of wontfix * chore: add link to issue explaining stalebot * chore: fix typo in stalebot comment * chore: run build GitHub Action on canary also * chore: run build GitHub Actions on canary as well * chore: add reproduction section to questions * feat(provider): Add Azure Active Directory B2C (#809) * add provider: Microsoft * documentation * support no tenant setup * fix code style * chore: rename Microsoft provider to AzureADB2C * chore: alphabetical order in providers/index * Revert "feat(provider): Add Azure Active Directory B2C (#809)" (#919) This reverts commit 6e6a24a7af9b14847fdfcd91345a5d833f36a228. * chore: add myself to the contributors list 🙈 * docs: fix incorrect references in cypress docs * chore: add additional docs clarification Co-authored-by: Balázs Orbán Co-authored-by: Vladimir Evdokimov --- www/docs/tutorials/testing-with-cypress.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/www/docs/tutorials/testing-with-cypress.md b/www/docs/tutorials/testing-with-cypress.md index 45ab28dd7a..eeb6bf78aa 100644 --- a/www/docs/tutorials/testing-with-cypress.md +++ b/www/docs/tutorials/testing-with-cypress.md @@ -36,7 +36,7 @@ Second, a cypress file for environment variables. These can be defined in `cypre { "GOOGLE_USER": "username@company.com", "GOOGLE_PW": "password", - "COOKIE_NAME": "__Secure-next-auth.session-token", + "COOKIE_NAME": "next-auth.session-token", "SITE_NAME": "http://localhost:3000" } ``` @@ -111,8 +111,11 @@ describe('Login page', () => { }) Cypress.Cookies.defaults({ - whitelist: cookieName, + preserve: cookieName, }) + + // remove the two lines below if you need to stay logged in + // for your remaining tests cy.visit('/api/auth/signout') cy.get('form').submit() }