Add test for showing display name and user type correctly
This commit is contained in:
parent
768cc38410
commit
deba59dc00
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,8 @@ $t->post_ok('/api/login' => json => {
|
||||||
})
|
})
|
||||||
->status_is(200)
|
->status_is(200)
|
||||||
->json_is('/success', Mojo::JSON->true)
|
->json_is('/success', Mojo::JSON->true)
|
||||||
|
->json_is('/display_name', 'Display Guy')
|
||||||
|
->json_is('/user_type', 'customer')
|
||||||
->json_has('/session_key');
|
->json_has('/session_key');
|
||||||
|
|
||||||
my $session_key = $t->tx->res->json->{session_key};
|
my $session_key = $t->tx->res->json->{session_key};
|
||||||
|
|
Reference in a new issue