-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 stacked plot child selection #6275
Conversation
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.
LGTM
Screen.Recording.2023-02-03.at.6.51.23.PM.mov |
Codecov Report
@@ Coverage Diff @@
## master #6275 +/- ##
==========================================
- Coverage 55.17% 55.17% -0.01%
==========================================
Files 607 607
Lines 26088 26090 +2
Branches 2376 2376
==========================================
Hits 14394 14394
- Misses 11026 11027 +1
- Partials 668 669 +1
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report at Codecov.
|
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 good overall. Left one refactor suggestion, and we should add some e2e coverage for this before we merge.
…hich was testing overlay plots instead.
…/nasa/openmct into fix-stacked-plot-child-selection
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.
Looking good so far. I noticed that we can only switch between properties of objects if clicking on them while not in edit mode. Once in edit mode, if you click the canvas, it will switch to the parent object. SO we are unable to switch between elements while in edit mode, something I think we were able to do previously?
Other than that, got some suggestions for improving the e2e test and selectors.
- Use unique object names in `text=` selectors - Combine like tests to reduce execution time - Use `getByRole` selectors where able
* Fix selections for different scenarios * Ensure plot selection in stacked plots works when there are no selected or found annotations * Adds e2e test for stacked plot selection and fixes the old e2e test which was testing overlay plots instead. * Fix selection of plots while in Edit mode * Improve tests for stacked plots * refactor: remove unnecessary `await`s * a11y: move aria-label to StackedPlotItem * refactor(e2e): combine like tests, unique object names - Use unique object names in `text=` selectors - Combine like tests to reduce execution time - Use `getByRole` selectors where able * docs(e2e): add comments to test * fix: add class back for unit test selector --------- Co-authored-by: Scott Bell <[email protected]> Co-authored-by: Jesse Mazzella <[email protected]>
Closes #6261
Describe your changes:
When there are no annotations and no new annotation selections, make sure the plot is still selected.
All Submissions:
Author Checklist
Reviewer Checklist