-
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
Geometry: Select, Points, and Polygon modes #2303
Conversation
Passing run #12706 ↗︎
Details:
Review all test suite changes for PR #2303 ↗︎ |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 186143166-geometry-toolbar #2303 +/- ##
==============================================================
+ Coverage 79.15% 84.41% +5.26%
==============================================================
Files 706 706
Lines 36021 36994 +973
Branches 9190 9604 +414
==============================================================
+ Hits 28511 31229 +2718
+ Misses 7063 5467 -1596
+ Partials 447 298 -149
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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 -- just a handful of minor suggestions
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.
👍 Changes look good
expect(content.getDependents(["p1"], { required: true })).toEqual(["p1"]); | ||
expect(content.getDependents(["p3"])).toEqual(["p3", polygonId]); | ||
expect(content.getDependents(["p3"], { required: true })).toEqual(["p3"]); | ||
const polygonId = polygon?.id; |
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.
FYI, another approach here would be to assert that it's defined:
const polygonId = polygon?.id; | |
const polygonId = polygon!.id; |
And then you wouldn't have to test for it below. Not something I'd recommend in production code but I think it's fine in tests.
This PR is part of the 5.12.0 release. |
This is the combined changes from PT-187496223, PT-187496261, and some straggling changes related to PT-186143166 (which was mostly complete in PR #2296).
In points and polygon modes, a "phantom point" is introduced that tracks the mouse pointer. On a click, this becomes a real point.
Logging for all Geometry tile actions was updated to be consistent and account for the new UI.
A minimal Cypress tests of actions in each mode is included; but testing for the Geometry tile could still be improved.