mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Add a sleep to Visualize page object's clickNewSearch method, to wait for the page to render on Jenkins.
This commit is contained in:
parent
4cd550b46c
commit
621131b25c
2 changed files with 6 additions and 7 deletions
|
@ -42,12 +42,8 @@ export default class HeaderPage {
|
|||
}
|
||||
|
||||
clickTimepicker() {
|
||||
// Wait for the page to render, otherwise we will get an error if Jenkins is too slow.
|
||||
return PageObjects.common.sleep(200).then(() => {
|
||||
return this.remote.setFindTimeout(defaultFindTimeout)
|
||||
.findByCssSelector('[data-test-subj="globalTimepickerButton"]')
|
||||
.click();
|
||||
});
|
||||
return PageObjects.common.findTestSubject('globalTimepickerButton')
|
||||
.click();
|
||||
}
|
||||
|
||||
isTimepickerOpen() {
|
||||
|
|
|
@ -150,7 +150,10 @@ export default class VisualizePage {
|
|||
return this.remote
|
||||
.setFindTimeout(defaultFindTimeout)
|
||||
.findByCssSelector('.list-group-item a')
|
||||
.click();
|
||||
.click().then(() => {
|
||||
// Wait for the page to render, otherwise we will get an error if Jenkins is too slow.
|
||||
return PageObjects.common.sleep(200);
|
||||
});
|
||||
}
|
||||
|
||||
setValue(newValue) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue