From 18a159e91217eda10db2dca0bcbce1466936a1f3 Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Fri, 1 Sep 2023 15:43:07 +0100 Subject: [PATCH] Add assertion for self response We want to ensure that the self response contains the email of the created account --- qa-core/src/account-api/tests/accounts/accounts.cloud.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qa-core/src/account-api/tests/accounts/accounts.cloud.spec.ts b/qa-core/src/account-api/tests/accounts/accounts.cloud.spec.ts index a0b5198f03..0969b72cf9 100644 --- a/qa-core/src/account-api/tests/accounts/accounts.cloud.spec.ts +++ b/qa-core/src/account-api/tests/accounts/accounts.cloud.spec.ts @@ -52,7 +52,8 @@ describe("Accounts", () => { await config.loginAsAccount(createAccountRequest) // Verify self response matches account - await config.api.accounts.self() + const [selfRes, selfBody] = await config.api.accounts.self() + expect(selfBody.email).toBe(email) // Delete account await config.api.accounts.deleteCurrentAccount()