-
Notifications
You must be signed in to change notification settings - Fork 124
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
Update search function for Command palette #772
Conversation
…ns-test-harness into command-palette
long startTime = System.currentTimeMillis(); | ||
|
||
while (System.currentTimeMillis() - startTime < maxWaitTime) { | ||
if (page.querySelector("*").getTextContent().contains(value)) { |
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.
can probably be simplified with asText()
? https://stackoverflow.com/a/6538127/4951015
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.
Couldn't find the asText
method, getVisibleText
exists however so I've updated it with that
Updates the search method to support the 'Command palette' introduced n jenkinsci/jenkins#7569. Also includes backwards compatibility for the classic YUI search bar.
Testing done
Submitter checklist