Get token first, then enable email

This commit is contained in:
Johannes Zellner 2016-09-08 22:13:15 +02:00
parent 14d29bdf65
commit d14342bfea

View File

@ -65,6 +65,11 @@ describe('Cloudron update testing', function () {
cloudron.activate(owner);
});
it('can login to the box', function () {
var token = cloudron.getOauthToken(owner);
cloudron.setCredentials(owner.password, token);
});
it('can enable email', function () {
cloudron.setEmailEnabled(true);
});
@ -73,11 +78,6 @@ describe('Cloudron update testing', function () {
cloudron.saveSieveScript(owner, done);
});
it('can login to the box', function () {
var token = cloudron.getOauthToken(owner);
cloudron.setCredentials(owner.password, token);
});
var location = 'test' + (Math.random() * 10000).toFixed();
it('can install app', function () {
var manifest = appStore.getManifest(common.TESTAPP_ID, common.PREV_TESTAPP_VERSION);