From 887b69818f8c33c5fec6431d31ad71f0983d8cac Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Wed, 20 Jan 2016 16:12:50 -0800 Subject: [PATCH] Add/move .end() calls in apps/powerbox.js --- tests/apps/powerbox.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/apps/powerbox.js b/tests/apps/powerbox.js index 9d21afe894..e52313b367 100644 --- a/tests/apps/powerbox.js +++ b/tests/apps/powerbox.js @@ -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(); }); }; @@ -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(); }); }; @@ -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. @@ -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(); };