diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-02 01:05:00 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-02 01:05:00 +0000 |
commit | 55409fb82ab2d75216255f77938632cb54d47fef (patch) | |
tree | d649b234d9fb9b8ef32a7ba85ca7192dbaf30670 /perllib/FixMyStreet/TestMech.pm | |
parent | 7b373378a67a760e5486393c031cb1d9ac265df1 (diff) |
Get test suite all passing again, and fix bug displaying partial photo and my stupid use of c as a variable.
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r-- | perllib/FixMyStreet/TestMech.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm index 185b59daa..a8cbc98f2 100644 --- a/perllib/FixMyStreet/TestMech.pm +++ b/perllib/FixMyStreet/TestMech.pm @@ -224,6 +224,7 @@ sub form_errors { my $mech = shift; my $result = scraper { process 'div.form-error', 'errors[]', 'TEXT'; + process 'p.form-error', 'errors[]', 'TEXT'; } ->scrape( $mech->response ); return $result->{errors} || []; @@ -365,6 +366,7 @@ sub extract_problem_banner { my $result = scraper { process 'div#side > p.banner', id => '@id', text => 'TEXT'; + process 'div.banner > p', id => '@id', text => 'TEXT'; } ->scrape( $mech->response ); |