next auth cypress test

Hi I have been trying to write an integration test using the next auth test documentation (witch are out dated), can some one please share he’s working solutions? By the was this is the guide I tried to follow: https://next-auth.js.org/tutorials/testing-with-cypress
Testing with Cypress | NextAuth.js
To test an implementation of NextAuth.js, we encourage you to use Cypress.
9 Replies
Ani
Ani13mo ago
Any updates on this? Looking to do this myself
Noam Muallem
Noam Muallem13mo ago
Nop, I gave up on this… let me know if you manage to find a solution
Ani
Ani13mo ago
Nothing solid yet but this seems promising https://github.com/microsoft/playwright/issues/21207
GitHub
[BUG] Unable to add cookie to browser context for testing app with ...
Context: Playwright Version: 1.31.1 Operating System: Linux Node.js version: v18.13.0 Browser: Chromium Extra: Using next auth Code Snippet playwright.config.ts import { defineConfig, devices } fro...
Noam Muallem
Noam Muallem13mo ago
In my case, I cloud not target the input in google sign in and type test into it
deforestor
deforestor10mo ago
Taking a look at this today and I realized that doing this is not a good idea:
Gurito43
Gurito432mo ago
did you guys find a good way to handle authentication?
Ani
Ani5d ago
I just ended up using playwright using the credentials method
Want results from more Discord servers?
Add your server
More Posts