From 0c58c963e90fe89bb4dc9e918c66a5651244ca2e Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 12 Apr 2016 22:00:21 -0700 Subject: [PATCH] uninstall only after test is done --- test/test.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index f93af1a..d8816ec 100755 --- a/test/test.js +++ b/test/test.js @@ -242,8 +242,9 @@ describe('Application life cycle test', function () { browser.findElement(by.id('user_name')).sendKeys(email); browser.findElement(by.id('password')).sendKeys(password); browser.findElement(by.tagName('form')).submit(); - browser.wait(until.elementLocated(by.linkText('Dashboard')), 4000).then(function () { done(); }); - - execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }); + browser.wait(until.elementLocated(by.linkText('Dashboard')), 4000).then(function () { + execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }); + done(); + }); }); });