diff options
author | Struan Donald <struan@exo.org.uk> | 2012-05-16 18:09:46 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-05-16 18:09:46 +0100 |
commit | 51901828ee898f05f515abfabac635453666ee7b (patch) | |
tree | 78c65a3c5e1d5a1afc4f70ff73912cda45fd3ec2 /perllib/FixMyStreet/TestMech.pm | |
parent | 23aa50cd6e1fb77de2d1e3ae8d29a8f8408a7930 (diff) |
make banner tests a bit more tolerant
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r-- | perllib/FixMyStreet/TestMech.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm index 7daf01f56..dc42c1aba 100644 --- a/perllib/FixMyStreet/TestMech.pm +++ b/perllib/FixMyStreet/TestMech.pm @@ -225,6 +225,7 @@ sub form_errors { my $result = scraper { process 'div.form-error', 'errors[]', 'TEXT'; process 'p.form-error', 'errors[]', 'TEXT'; + process 'p.error', 'errors[]', 'TEXT'; } ->scrape( $mech->response ); return $result->{errors} || []; |