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 887b698
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 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 Expand Up @@ -193,5 +195,6 @@ module.exports["Test Faling Inline Powerbox"] = function (browser) {
})
.frame("grain-frame")
.waitForElementPresent("#request-error", short_wait)
.assert.containsText("#request-error", "Domain resolved to an invalid IP");
.assert.containsText("#request-error", "Domain resolved to an invalid IP")
.end();
};

0 comments on commit 887b698

Please sign in to comment.