Commit a6c698b1 authored by Curtis Adam's avatar Curtis Adam

Fix last chimp test

parent c3e37ca5
......@@ -31,7 +31,7 @@ module.exports = function () {
});
this.Then(/^I'll go back to the leitner statistics view to check my progress$/, function () {
navigation.back();
navigation.leitnerWozniakBackButton();
cardset.leitnerProgress();
box1After = navigation.getContent('#boxChart', 2, 'data-box1');
box2After = navigation.getContent('#boxChart', 2, 'data-box2');
......
......@@ -83,6 +83,12 @@ module.exports = {
browser.waitForExist('#logout_admin', global.threshold);
browser.click('#logout_admin');
},
leitnerWozniakBackButton: function (click = true) {
browser.waitForVisible('.backToCardset', global.threshold);
if (click) {
browser.click('.backToCardset');
}
},
back: function (click = true) {
browser.waitForVisible('#backButton', global.threshold);
if (click) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment