-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Descope Testing Strategies Guide #5368
base: main
Are you sure you want to change the base?
Descope Testing Strategies Guide #5368
Conversation
👷 Deploy request for cypress-docs pending review.Visit the deploys page to approve it
|
|
✅ Deploy Preview for benevolent-cat-040f48 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hey @nagash77 ! Could this PR get reassigned a reviewer? Thanks! |
Thank you for the contribution @allenzhou101! We'll want to install, configure and test everything in order to assert everything works as expected given this could be first class integration documentation. Right now we don’t have the time to put into reviewing and evaluating the changes proposed but we'll keep this open for when more bandwidth is available. |
Thanks for the explanation @nagash77 ! Really appreciate all the great work y'all are doing at Cypress. Would love to help smooth out the process in whatever way possible. Would it help if I included a video tutorial or demo of installation and setup? |
@jaffrepaul We're seeing quite a few of our customers at Descope interested in Cypress and would love to be able to reference this documentation. Do you happen to have an update on review timeline? |
url: `${descopeApiBaseURL}/auth/otp/verify/email`, | ||
headers: authHeader, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The /auth/otp/verify/email
endpoint is a public authentication endpoint and should not include the management key in its authorization header. The headers: authHeader
line should be removed from this request. This is a security best practice as authentication endpoints are designed to work without administrative credentials.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would need to be moved to docs/app/end-to-end-testing due to repo reorganization
This PR is focused on improving the documentation related to end-to-end (E2E) testing with Cypress and Descope. It introduces a new guide titled "Descope Authentication," which provides comprehensive instructions on how to integrate Descope with a Cypress testing suite.
The guide is split into several sections, each one targeting a different aspect of the integration:
Descope Application Setup: Step-by-step instructions to set up Descope in the project's Descope Dashboard.
Setting Descope app credentials in Cypress: Explains how to configure Cypress to use the Descope environment variables.
Custom Command for Descope Authentication: Provides detailed instructions and code examples for creating Cypress custom commands to authenticate with Descope, including both UI login and programmatic login.
Login with UI: Instructions and a code example showing how to login via the user interface, using the Test User Management API.
Programmatic Login: A guide and code example demonstrating how to create a Cypress command to login programmatically, using the Test User Management API and local storage.