[ACA-1634] update peopleApi to use alfresco-ja-api-node in e2e (#558)

* update peopleApi to use alfresco-ja-api-node in e2e

* small code improvement
This commit is contained in:
Adina Parpalita
2018-08-09 20:51:45 +03:00
committed by Denys Vuika
parent b8cc5422f4
commit 8c76d92f47
29 changed files with 76 additions and 80 deletions

View File

@@ -61,14 +61,12 @@ describe('Login', () => {
beforeAll(done => {
Promise
.all([
peopleApi.createUser(testUser),
peopleApi.createUser(russianUser.username, russianUser.password),
peopleApi.createUser(johnDoe.username, johnDoe.password, {
firstName: johnDoe.firstName,
lastName: johnDoe.lastName
}),
peopleApi.createUser(disabledUser).then(() => peopleApi.disableUser(disabledUser)),
peopleApi.createUser(testUser2.username, testUser2.password)
peopleApi.createUser({ username: testUser }),
peopleApi.createUser(russianUser),
peopleApi.createUser(johnDoe),
peopleApi.createUser({ username: disabledUser })
.then(() => peopleApi.disableUser(disabledUser)),
peopleApi.createUser(testUser2)
])
.then(done);
});

View File

@@ -40,7 +40,7 @@ describe('Logout', () => {
beforeAll((done) => {
peopleApi
.createUser(johnDoe)
.createUser({ username: johnDoe })
.then(done);
});