Skip to content

Commit

Permalink
test: completing the create_user.t (#8722)
Browse files Browse the repository at this point in the history
completing the create_user.t test in order to check if the preferences gave by the user is well saved
  • Loading branch information
albatrousse committed Jul 25, 2023
1 parent b6cacfb commit b128504
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ ifeq ($(OS), Darwin)
else
export CPU_COUNT=$(shell nproc || echo 1)
endif

# tell gitbash not to complete path
export MSYS_NO_PATHCONV=1

# load env variables
Expand Down
8 changes: 8 additions & 0 deletions tests/integration/create_user.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@ my $response = $ua->get($url);
#$DB::single = 1;
is $response->{_rc}, 200;

#checking whether the preference were well saved
my @words = ('bob@test.com', $default_user_form{userid}, $default_user_form{name});

foreach my $word (@words) {
like($response->content, qr/\Q$word\E/i, "the word is in the page")
; #checking word by word if they match what is saved in the preference page
}

done_testing();

0 comments on commit b128504

Please sign in to comment.