Add verifications

This commit is contained in:
Pedro Silva 2023-06-09 12:44:31 +01:00
parent 457e0f8d82
commit 0aa3e19d09
1 changed files with 9 additions and 0 deletions

View File

@ -94,6 +94,11 @@ describe("Internal API - User Management & Permissions", () => {
lastName: "newLastName",
}
await config.api.self.changeUserInfo(body)
const [changedUserInfoResponse, changedUserInfoJson] =
await config.api.self.getSelf()
expect(changedUserInfoJson.firstName).toEqual("newFirstName")
expect(changedUserInfoJson.lastName).toEqual("newLastName")
})
it("Generate API key", async () => {
@ -102,5 +107,9 @@ describe("Internal API - User Management & Permissions", () => {
it("Change Password", async () => {
await config.api.self.changeSelfPassword()
const [changedUserInfoResponse, changedUserInfoJson] =
await config.api.self.getSelf()
await config.login(changedUserInfoJson.email!, "newPassword")
})
})