set cloudron name before adding user

This commit is contained in:
Girish Ramakrishnan 2016-10-13 20:13:48 -07:00
parent b0c45d00c3
commit 64253b9e14
1 changed files with 4 additions and 4 deletions

View File

@ -57,6 +57,10 @@ describe('Cloudron user creation testing', function () {
cloudron.activate(owner);
});
it('can set cloudron name', function () {
cloudron.setCloudronName('Acme Inc');
});
it('can login to the box', function () {
var token = cloudron.getOauthToken(owner);
cloudron.setCredentials(owner.password, token);
@ -70,10 +74,6 @@ describe('Cloudron user creation testing', function () {
newUser = cloudron.addUser('newuser', 'test+foo@cloudron.io');
});
it('can set cloudron name', function () {
cloudron.setCloudronName('Acme Inc');
});
it('did send invite mail to user', function (done) {
var url = 'https://' + cloudron.adminFqdn() + '/api/v1/session/account/setup.html?reset_token=' + newUser.resetToken;
var escapedUrl = url.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');