Skip to content

Commit

Permalink
add missing check
Browse files Browse the repository at this point in the history
  • Loading branch information
clauyan committed Nov 11, 2024
1 parent 329f573 commit 3bcf91a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion loadtest/usecases/1_login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ function main(): Result<undefined> {
const keycloakFormResponse = group("submit form", () => {
const user = users.getLogin();
const result = loginPage.submitForm(loginPageResponse, user);
check(result.data!, {
if (!result.ok || !result.data) return result;
check(result.data, {
"submitting login form to kc succeeded": (r) => r.status === 302,
...defaultTimingCheck,
});
Expand Down

0 comments on commit 3bcf91a

Please sign in to comment.