-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix Cypress tests around sorted documents #2412
Conversation
scytacki
commented
Sep 22, 2024
•
edited
Loading
edited
- fix teacher share test:
- the teacher was added to a group (teachers aren't supposed to be in groups
- the sort group sections weren't loaded before being expanded
- fix student test, it was using demo space for testing which made it unpredictable
- enable sort filter persistence test, it was using demo space for testing which made it unpredictable
- added a new helper visitQaSubtabsUnit to improve readability
- the teacher was added to a group (teachers aren't supposed to be in groups - the sort group sections weren't loaded before being expanded
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2412 +/- ##
==========================================
- Coverage 86.28% 86.26% -0.03%
==========================================
Files 741 741
Lines 38206 38206
Branches 9768 9768
==========================================
- Hits 32966 32957 -9
- Misses 4939 4948 +9
Partials 301 301
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
collaborative-learning Run #13839
Run Properties:
|
Project |
collaborative-learning
|
Branch Review |
188315060-fix-teacher-share-test
|
Run status |
Passed #13839
|
Run duration | 01m 46s |
Commit |
1858c8bd3a: fix student test, and enable sort filter persistence
|
Committer | Scott Cytacki |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
1
|
View all changes introduced in this branch ↗︎ |
- both tests were using a demo space for testing - also added a new helper visitQaSubtabsUnit to improve readability
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.
Looks great -- thanks!
|
||
cy.log("verify user's own documents are not marked as private and are accessible in the compact view"); | ||
// In this case the sections are still open from before | ||
// openAllGroupSections(); |
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.
I'm pretty sure you meant to leave this here for extra clarity, but wanted to note the commented-out call to openAllGroupSections
in case not.
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.
Yeah I left it there clarity. 👍
@johnTcrawford I'm going to merge this, but if you are working on sorted document tests it would still be good to take a look at these changes. |