Repository navigation
test: find a suggestion's Accept and Reject by margin entry key - #5536
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#5329 removed the margin entry's
classNameoption, so a suggestion's Accept and Reject in the margin no longer carry.lf-sug-accept/.lf-sug-reject. That PR moved the other tests todata-lf-margin-entry-key, buttest_a_widget_naming_its_own_words_does_not_read_the_runtimesstill clicked.lf-sug-{outcome}and timed out waiting for it. It now finds both controls by[data-lf-margin-entry-key={outcome}], the same way the rest oftest_suggestions.pydoes. No product behavior changes, and #5329's intent is unaffected.Locally the test fails on
main(Locator.click: Timeout … waiting for locator("[data-lf-margin-for='sug'] .lf-sug-accept")) and passes with this change. No other test intests/ordev/still names.lf-sug-acceptor.lf-sug-reject.Closes #5483 — automated triage