Add a sleep to Visualize page object's clickNewSearch method, to wait for the page to render on Jenkins.

This commit is contained in:
CJ Cenizal 2017-02-07 09:56:08 -08:00
parent 4cd550b46c
commit 621131b25c
2 changed files with 6 additions and 7 deletions

View file

@ -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() {

View file

@ -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) {