Add test for showing display name and user type correctly

This commit is contained in:
Tom Bloor 2017-08-25 15:17:12 +01:00
parent 768cc38410
commit deba59dc00

View file

@ -47,6 +47,8 @@ $t->post_ok('/api/login' => json => {
})
->status_is(200)
->json_is('/success', Mojo::JSON->true)
->json_is('/display_name', 'Display Guy')
->json_is('/user_type', 'customer')
->json_has('/session_key');
my $session_key = $t->tx->res->json->{session_key};