give the app time to update the url

This commit is contained in:
Joe Fleming 2015-11-05 17:50:40 -07:00
parent e05e91bcd4
commit b8951da9a0

View file

@ -89,9 +89,12 @@ define(function (require) {
});
bdd.it('should remove index pattern from url', function indexNotInUrl() {
return remote.getCurrentUrl()
.then(function (currentUrl) {
expect(currentUrl).to.not.contain('logstash-*');
// give the url time to settle
return common.tryForTime(5000, function () {
return remote.getCurrentUrl()
.then(function (currentUrl) {
expect(currentUrl).to.not.contain('logstash-*');
})
})
.catch(common.handleError(this));
});