cleanup, tweak URL wait time
This commit is contained in:
parent
6a18a112b5
commit
33372cd7ac
4 changed files with 2 additions and 6 deletions
1
test/fixtures/scenarioManager.js
vendored
1
test/fixtures/scenarioManager.js
vendored
|
@ -37,7 +37,6 @@ ScenarioManager.prototype.load = function (id) {
|
||||||
body: require(path.join(scenario.baseDir, bulk.source)),
|
body: require(path.join(scenario.baseDir, bulk.source)),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,6 @@ define(function (require) {
|
||||||
});
|
});
|
||||||
|
|
||||||
bdd.it('should load with time pattern checked', function () {
|
bdd.it('should load with time pattern checked', function () {
|
||||||
console.log(Object.keys(this));
|
|
||||||
|
|
||||||
return settingsPage.getTimeBasedEventsCheckbox().isSelected()
|
return settingsPage.getTimeBasedEventsCheckbox().isSelected()
|
||||||
.then(function (selected) {
|
.then(function (selected) {
|
||||||
expect(selected).to.be.ok();
|
expect(selected).to.be.ok();
|
||||||
|
|
|
@ -32,7 +32,7 @@ define(function (require) {
|
||||||
return scenarioManager.loadIfEmpty('makelogs');
|
return scenarioManager.loadIfEmpty('makelogs');
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return common.sleep(2500);
|
return common.sleep(3000);
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return common.tryForTime(25000, function () {
|
return common.tryForTime(25000, function () {
|
||||||
|
@ -40,6 +40,7 @@ define(function (require) {
|
||||||
pathname: ''
|
pathname: ''
|
||||||
})))
|
})))
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
// give angular enough time to update the URL
|
||||||
return common.sleep(2000);
|
return common.sleep(2000);
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
|
|
@ -12,8 +12,6 @@ define(function (require) {
|
||||||
this.remote = remote;
|
this.remote = remote;
|
||||||
}
|
}
|
||||||
|
|
||||||
var defaultTimeout = 5000;
|
|
||||||
|
|
||||||
Common.prototype = {
|
Common.prototype = {
|
||||||
constructor: Common,
|
constructor: Common,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue