Skip to content

Commit 887b698

Browse files
committed
Add/move .end() calls in apps/powerbox.js
1 parent 20e2bda commit 887b698

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

tests/apps/powerbox.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ module.exports["Test Powerbox"] = function (browser) {
5555
.click("#powerbox-request-form button")
5656
.frame("grain-frame")
5757
.waitForElementVisible("#request-result", short_wait)
58-
.assert.containsText("#request-result", "request: footest");
58+
.assert.containsText("#request-result", "request: footest")
59+
.end();
5960
});
6061
};
6162

@@ -87,7 +88,8 @@ module.exports["Test PowerboxSave"] = function (browser) {
8788
.click("#powerbox-request-form button")
8889
.frame("grain-frame")
8990
.waitForElementVisible("#request-result", short_wait)
90-
.assert.containsText("#request-result", "request: footest");
91+
.assert.containsText("#request-result", "request: footest")
92+
.end();
9193
});
9294
};
9395

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

137139
// This tests the basic functionality of the inline powerbox.
@@ -193,5 +195,6 @@ module.exports["Test Faling Inline Powerbox"] = function (browser) {
193195
})
194196
.frame("grain-frame")
195197
.waitForElementPresent("#request-error", short_wait)
196-
.assert.containsText("#request-error", "Domain resolved to an invalid IP");
198+
.assert.containsText("#request-error", "Domain resolved to an invalid IP")
199+
.end();
197200
};

0 commit comments

Comments
 (0)