aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-05-24 12:20:10 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-05-28 17:19:27 +0100
commit413c39aa232c078545fe58a53aebddc152a3340b (patch)
tree4fe0897771d87b9fe437d7680858b28002e19213 /t/app/controller
parentf5b0c0629b9bbab562fe02f722b3ef1bb5bff37a (diff)
Show field entries if error on add user form
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/admin/users.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/app/controller/admin/users.t b/t/app/controller/admin/users.t
index e2c922a23..767c8ef4c 100644
--- a/t/app/controller/admin/users.t
+++ b/t/app/controller/admin/users.t
@@ -157,6 +157,7 @@ for my $test (
subtest $test->{desc} => sub {
$mech->get_ok('/admin/users');
$mech->submit_form_ok( { with_fields => $test->{fields} } );
+ $mech->content_contains('Norman') if $test->{fields}{name};
if ($test->{error}) {
$mech->content_contains($_) for @{$test->{error}};
} else {