Skip to content

Commit

Permalink
test: fix userTotpRegistrationValidate error validation path
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi committed Oct 5, 2024
1 parent 060aef2 commit 09c9617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bats/core/api/auth.bats
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ generateTotpCode() {
[ "$totpEnabled" == "true" ] || exit 1

exec_graphql 'charlie' 'user-totp-registration-initiate'
error_message="$(graphql_output '.data.userEmailRegistrationInitiate.errors[0].message')"
error_message="$(graphql_output '.data.userTotpRegistrationValidate.errors[0].message')"
expected_message="TOTP has already been enabled for this account. If you need to reset it, please contact support."
[[ "$error_message" == "$expected_message" ]] || exit 1
}
Expand Down

0 comments on commit 09c9617

Please sign in to comment.