mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
update HeaderPage helper, use defaultTimeout
This commit is contained in:
parent
ca5ba4fe16
commit
9303c57b7b
1 changed files with 4 additions and 4 deletions
|
@ -13,14 +13,14 @@ define(function (require) {
|
|||
common = new Common(this.remote);
|
||||
}
|
||||
|
||||
var defaultTimeout = 5000;
|
||||
var defaultTimeout = 60000;
|
||||
|
||||
HeaderPage.prototype = {
|
||||
constructor: HeaderPage,
|
||||
|
||||
clickSelector: function (selector) {
|
||||
var self = this.remote;
|
||||
return common.tryForTime(5000, function () {
|
||||
return common.tryForTime(defaultTimeout, function () {
|
||||
return self.setFindTimeout(defaultTimeout)
|
||||
.findByCssSelector(selector)
|
||||
.then(function (tab) {
|
||||
|
@ -111,8 +111,8 @@ define(function (require) {
|
|||
|
||||
waitForToastMessageGone: function waitForToastMessageGone() {
|
||||
var self = this;
|
||||
return common.tryForTime(defaultTimeout * 5, function tryingForTime() {
|
||||
return self.remote.setFindTimeout(1000)
|
||||
return common.tryForTime(defaultTimeout * 2, function () {
|
||||
return self.remote.setFindTimeout(defaultTimeout)
|
||||
.findAllByCssSelector('kbn-truncated.toast-message.ng-isolate-scope')
|
||||
.then(function toastMessage(messages) {
|
||||
if (messages.length > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue