Skip to content

Commit

Permalink
Add/move .end() calls in apps/powerbox.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jparyani committed Jan 21, 2016
1 parent 20e2bda commit 4bf4333
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/apps/powerbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ module.exports["Test Powerbox"] = function (browser) {
.click("#powerbox-request-form button")
.frame("grain-frame")
.waitForElementVisible("#request-result", short_wait)
.assert.containsText("#request-result", "request: footest");
.assert.containsText("#request-result", "request: footest")
.end();
});
};

Expand Down Expand Up @@ -87,7 +88,8 @@ module.exports["Test PowerboxSave"] = function (browser) {
.click("#powerbox-request-form button")
.frame("grain-frame")
.waitForElementVisible("#request-result", short_wait)
.assert.containsText("#request-result", "request: footest");
.assert.containsText("#request-result", "request: footest")
.end();
});
};

Expand Down Expand Up @@ -129,9 +131,9 @@ module.exports["Test Powerbox with failing requirements"] = function (browser) {
.switchWindow(windows.value[1])
.waitForElementVisible(".grainlog-contents > pre", short_wait)
.assert.containsText(".grainlog-contents > pre", "Error: Requirements not satisfied")
.end();
});
})
.end();
};

// This tests the basic functionality of the inline powerbox.
Expand Down

0 comments on commit 4bf4333

Please sign in to comment.