-
Notifications
You must be signed in to change notification settings - Fork 4.8k
chore: highlight edited locator while recording #33632
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
chore: highlight edited locator while recording #33632
Conversation
This comment has been minimized.
This comment has been minimized.
| highlight = { elements }; | ||
| else | ||
| this._actionSelectorModel = null; | ||
| highlight = 'clear'; |
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.
Doesn't this always clear highlight when recorder switches from state.ariaTemplate to state.actionSelector? I think this should be:
else if (highlight === 'noop')
highlight = 'clear';
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.
This code only runs if the template was the thing that changed last, so should be ok?
| if (!state.actionSelector && !state.ariaTemplate) | ||
| this._actionSelectorModel = null; | ||
|
|
||
| if (this.state.mode === 'none' || this.state.mode === 'standby') |
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.
This mode check is gone. Do we clear highlight upon performing an action on the recorder side?
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.
I think we do, so should be unrelated to that scenario.
6bfbb19 to
0580258
Compare
0580258 to
cc24cf9
Compare
Test results for "tests 1"1 flaky36912 passed, 650 skipped Merge workflow run. |
This breaks when VSCode updates the highlight during recording. The problem was exposed by microsoft#33632.
No description provided.