Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: completing the create_user.t #8722

Merged
merged 3 commits into from
Jul 25, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/integration/create_user.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@ 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();
Loading