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

Reenable Cypress test and fix bugs it turned up #2405

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

scytacki
Copy link
Member

@scytacki scytacki commented Sep 13, 2024

Changes to the test:

  • need to comment on exemplar docs twice to make doc show up in the correct strategy sort group
  • deleting strategies is not supported, the test confirms the wrong behavior so we remember to fix it when we fix the behavior

Runtime changes:

  • the requesting of the investigation by ordinal was wrong and was causing console warnings, fixing this also has fixed part of the issue with titles PT-188227517
  • removed the firestoreTagDocumentMap, it was not actually being populated so was not really used in getTagsWithDocs.
  • handle the case where users comment on exemplar documents. Previously this was causing duplicate items in the sort work groups.

Cypress config changes:

  • removed unused test:cypress:ci npm script
  • removed unused cypress.dev.json configuration
  • update cypress.local.json so local runs of Cypress have a shorter timeout. This way you only have to way 5 seconds instead of 1 minute for Cypress to give up looking for something to exist or not exist. The default configuration is still 1 minute which will be used when Cypress is run on GitHub

Copy link

codecov bot commented Sep 13, 2024

Codecov Report

Attention: Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.17%. Comparing base (7b1f57b) to head (e757aaa).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/models/stores/sorted-documents.ts 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2405      +/-   ##
==========================================
+ Coverage   86.02%   86.17%   +0.14%     
==========================================
  Files         736      736              
  Lines       37816    37814       -2     
  Branches     9623     9626       +3     
==========================================
+ Hits        32533    32586      +53     
+ Misses       4982     4929      -53     
+ Partials      301      299       -2     
Flag Coverage Δ
cypress ?
cypress-regression 77.78% <94.11%> (+0.18%) ⬆️
cypress-smoke 28.06% <11.76%> (-0.01%) ⬇️
jest 48.74% <21.42%> (-0.01%) ⬇️

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 13, 2024

collaborative-learning    Run #13760

Run Properties:  status check passed Passed #13760  •  git commit e757aaad08: include fixes that Ethan found in a closed PR
Project collaborative-learning
Branch Review 188158639-renable-and-fix-cypress-test
Run status status check passed Passed #13760
Run duration 13m 55s
Commit git commit e757aaad08: include fixes that Ethan found in a closed PR
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 3
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 111
View all changes introduced in this branch ↗︎

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 good -- thanks 👍

@scytacki
Copy link
Member Author

I'm going to rebase this on master because of the uncertainty of the local-storage-dev-root PR that it is current based on.

Changes to the test:
- need to comment on exemplar docs twice to make doc show up in the correct strategy sort group
- deleting strategies is not supported, the test confirms the wrong behavior so we remember to fix it when we fix the behavior

Other changes:
- the requesting of the investigation by ordinal was wrong and was causing console warnings, fixing this also has fixed part of the issue with titles PT-188227517
- removed the firestoreTagDocumentMap, it was not actually being populated so was not really used in getTagsWithDocs.
- handle the case where users comment on exemplar documents. Previously this was causing duplicate items in the sort work groups.
@scytacki scytacki force-pushed the 188158639-renable-and-fix-cypress-test branch from 8dea7f8 to e757aaa Compare September 17, 2024 02:08
@scytacki scytacki changed the base branch from 188211348-local-storage-dev-root to master September 17, 2024 02:09
@scytacki scytacki merged commit 812c3c4 into master Sep 17, 2024
17 checks passed
@scytacki scytacki deleted the 188158639-renable-and-fix-cypress-test branch September 17, 2024 11:48
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