-
Notifications
You must be signed in to change notification settings - Fork 24
Add Cypress e2e tests with authenticated user login via magic links #1379
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1379 +/- ##
==========================================
- Coverage 80.44% 80.02% -0.43%
==========================================
Files 70 70
Lines 4771 4830 +59
==========================================
+ Hits 3838 3865 +27
- Misses 933 965 +32
🚀 New features to boost your workflow:
|
datalab
|
||||||||||||||||||||||||||||
| Project |
datalab
|
| Branch Review |
bc/cypress-magiclink
|
| Run status |
|
| Run duration | 07m 46s |
| Commit |
|
| Committer | Ben Charmes |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
354
|
| View all changes introduced in this branch ↗︎ | |
| return jsonify({"status": "success", "token": token, "email": email}), 200 | ||
|
|
||
|
|
||
| @AUTH.route("/logout", methods=["POST"]) |
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.
Let's keep the original route that exists in main.py and use that in the tests
dd19abf to
b809178
Compare
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.
One more minor comment, otherwise good to go!
Closes #1363
Implements UI testing as authenticated users to catch bugs that only occur when logged in. Adds
/testing/create-magic-linkand/logoutendpoints, plus Cypress commandsloginViaTestMagicLink()andlogout(). Includes tests for authenticated sample creation, admin dashboard access, and multi-user sample visibility.