Skip to content
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

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

scytacki
Copy link
Member

@scytacki scytacki commented Sep 22, 2024

  • 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
Copy link

codecov bot commented Sep 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.26%. Comparing base (01448c3) to head (1858c8b).
Report is 4 commits behind head on master.

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              
Flag Coverage Δ
cypress ?
cypress-regression 78.10% <100.00%> (+0.02%) ⬆️
cypress-smoke 27.81% <100.00%> (-0.01%) ⬇️
jest 48.78% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

cypress bot commented Sep 22, 2024

collaborative-learning    Run #13839

Run Properties:  status check passed Passed #13839  •  git commit 1858c8bd3a: fix student test, and enable sort filter persistence
Project collaborative-learning
Branch Review 188315060-fix-teacher-share-test
Run status status check passed Passed #13839
Run duration 01m 46s
Commit git commit 1858c8bd3a: fix student test, and enable sort filter persistence
Committer Scott Cytacki
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  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
@scytacki scytacki changed the title fix teacher share cypress test Fix Cypress tests around sorted documents Sep 23, 2024
@scytacki scytacki marked this pull request as ready for review September 23, 2024 13:55
Copy link
Contributor

@emcelroy emcelroy left a 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();
Copy link
Contributor

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.

Copy link
Member Author

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. 👍

@scytacki
Copy link
Member Author

@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.

@scytacki scytacki merged commit 3ba9925 into master Sep 23, 2024
15 of 17 checks passed
@scytacki scytacki deleted the 188315060-fix-teacher-share-test branch September 23, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants