1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

Add verifications

This commit is contained in:
Pedro Silva 2023-06-09 12:44:31 +01:00
parent 457e0f8d82
commit 0aa3e19d09

View file

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