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

Add e2e JS tests for file upload and block creation #968

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Oct 24, 2024

This PR extracts just the tests from #938 before the refactor in #943.

@ml-evs ml-evs force-pushed the ml-evs/edit-page-plus-bens-fix branch 2 times, most recently from 514a175 to 333b146 Compare October 24, 2024 17:08
- Skip name check

- Fix test typo
@ml-evs ml-evs force-pushed the ml-evs/edit-page-plus-bens-fix branch from 333b146 to fd8747d Compare October 24, 2024 17:08
@ml-evs ml-evs changed the title Begin adding tests for edit page and file upload Add e2e JS tests for file upload Oct 24, 2024
@ml-evs ml-evs added testing For issues/PRs that change how the package is tested webapp For issues/PRs pertaining to the web interface labels Oct 24, 2024
Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.38%. Comparing base (48e609d) to head (675906d).
Report is 69 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #968   +/-   ##
=======================================
  Coverage   68.38%   68.38%           
=======================================
  Files          62       62           
  Lines        3928     3928           
=======================================
  Hits         2686     2686           
  Misses       1242     1242           

Copy link

cypress bot commented Oct 24, 2024

datalab    Run #2645

Run Properties:  status check passed Passed #2645  •  git commit 324fb67c37 ℹ️: Merge 675906dfb75ff3855e4070e2584d0ccf10ca64b8 into 48e609d9bce8acd0b63b38157b12...
Project datalab
Branch Review ml-evs/edit-page-plus-bens-fix
Run status status check passed Passed #2645
Run duration 06m 43s
Commit git commit 324fb67c37 ℹ️: Merge 675906dfb75ff3855e4070e2584d0ccf10ca64b8 into 48e609d9bce8acd0b63b38157b12...
Committer Matthew Evans
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 402
View all changes introduced in this branch ↗︎

@ml-evs ml-evs force-pushed the ml-evs/edit-page-plus-bens-fix branch from fd8747d to 794224a Compare October 24, 2024 17:25
@ml-evs ml-evs marked this pull request as ready for review October 24, 2024 17:27
@ml-evs
Copy link
Member Author

ml-evs commented Oct 24, 2024

✔️ Thanks for this @BenjaminCharmes! We could think about expanding the test case slightly to properly check that bokeh is working (e.g., check that something happens if you change axis/wavelength), but this is great for now.

@ml-evs ml-evs changed the title Add e2e JS tests for file upload Add e2e JS tests for file upload and block creation Oct 24, 2024
- Small fix for e2e test

- Fix example_data path for e2e test

- Tweak test cases for XRD plot
@ml-evs ml-evs force-pushed the ml-evs/edit-page-plus-bens-fix branch from 794224a to 675906d Compare October 24, 2024 17:48
@ml-evs ml-evs merged commit 21f4303 into main Oct 25, 2024
17 checks passed
@ml-evs ml-evs deleted the ml-evs/edit-page-plus-bens-fix branch October 25, 2024 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing For issues/PRs that change how the package is tested webapp For issues/PRs pertaining to the web interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants