-
Notifications
You must be signed in to change notification settings - Fork 319
fix: DEV-4081: e2e tests for selected region after tool changes #1192
fix: DEV-4081: e2e tests for selected region after tool changes #1192
Conversation
…ertain tools. When using Brush then Eraser or Pan, existing region should stay selected and have new additions be added to it. Similar for the Magic Wand. We also have to ensure that the unselectRegionOnToolChange property for the Brush tool is updated on `afterCreate` so that e2e tests can dynamically update a feature flag and have it be applied.
✅ Linked to Task DEV-4081 · Review and merge Implements Magic Wand tool PR |
…n the Registry. This is safer for side effects. We've also modified our e2e tests to work with this different feature flagging approach.
We're tracking internally and waiting for assignment. |
Thanks!
On Tue, Mar 14, 2023 at 7:56 PM Chris Hoge ***@***.***> wrote:
We're tracking internally and waiting for assignment.
—
Reply to this email directly, view it on GitHub
<#1192 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABEHUKCTH3CON2UNM3ME6DW4EVXXANCNFSM6AAAAAAU22AJUM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Brad Neuberg
Website: http://codinginparadise.org
|
@hogepodge Hi Chris, any updates on this PR? I think all the work and feedback on the code review are essentially done, and these are just integration tests. I'd love to land this if possible. We have a tracking ticket over on Planet's side for this work and I'd love to close that soon if possible. |
@hogepodge Checking in about this again :) These are important integration tests to us at Planet, as the selected region getting unselected during a tool change causes significant friction during labeling in our workflow. @cameronbronstein might have found this feature regressing the last few weeks (not completely sure yet as selection can be subtle), and these integration tests were meant to catch that kind of regression. Any updates on landing these tests so that when they break that is caught? |
I'll be checking in tomorrow with the QA team to see if we can get this moved along. Thanks |
@nicholasrq ping on reviewing this patch |
Any update on landing these? They are just tests :) |
I've created an internal ticket to try and move this forward. |
/git merge master
|
- HumanSignal/label-studio-frontend#1192 for Magic Wand from @BradNeuberg - HumanSignal/label-studio-frontend#1708 with external images problem - HumanSignal/label-studio-frontend#1021 for maxUsages missed for some reason
* feat: LEAP-219: Update LSF E2E with recent changes - HumanSignal/label-studio-frontend#1192 for Magic Wand from @BradNeuberg - HumanSignal/label-studio-frontend#1708 with external images problem - HumanSignal/label-studio-frontend#1021 for maxUsages missed for some reason * Fix newlines in all LSF E2E from CRLF to LF * ci: Build frontend Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/8429166524 * Update web/libs/editor/tests/e2e/tests/ner-text.test.js * ci: Build frontend Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/8429666577 --------- Co-authored-by: robot-ci-heartex <[email protected]> Co-authored-by: bmartel <[email protected]>
e2e tests to ensure selected region is correct after moving between certain tools.
When using Brush then Eraser or Pan, existing region should stay selected and have new additions be added to it. Similar for the Magic Wand.
We also have to ensure that the unselectRegionOnToolChange property for the Brush tool is updated on
afterCreate
so that e2e tests can dynamically update a feature flag and have it be applied.In addition, we have made adding the magicwand tag to the Registry safer, feature flag gating it on import rather than dynamically in the Registry class.
PR fulfills these requirements
[fix|feat|ci|chore|doc]: TICKET-ID: Short description of change made
ex.fix: DEV-XXXX: Removed inconsistent code usage causing intermittent errors
Change has impacts in these area(s)
(check all that apply)
Describe the reason for change
(link to issue, supportive screenshots etc.)
e2e tests for the fixes in HumanSignal/label-studio#3510 , that were also bundled in the PR at #1119
What does this fix?
(if this is a bug fix)
These are e2e tests for region selection behavior for the Brush/Magic Wand when interacting with the Eraser and Pan tools. It also includes a small change to how the unselectRegionOnToolChange value is set on the Brush tool to ensure it can be dynamically changed based on the Magic Wand flag when running during e2e tests.
What is the new behavior?
(if this is a breaking or feature change)
What is the current behavior?
(if this is a breaking or feature change)
What libraries were added/updated?
(list all with version changes)
Does this change affect performance?
(if so describe the impacts positive or negative)
Does this change affect security?
(if so describe the impacts positive or negative)
What alternative approaches were there?
(briefly list any if applicable)
What feature flags were used to cover this change?
(briefly list any if applicable)
FF_DEV_4081 = 'fflag_feat_front_dev_4081_magic_wand_tool'
Does this PR introduce a breaking change?
(check only one)
What level of testing was included in the change?
(check all that apply)
Which logical domain(s) does this change affect?
(for bug fixes/features, be as precise as possible. ex. Authentication, Annotation History, Review Stream etc.)