aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/TestMech.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-03-14 21:52:16 +0000
committerStruan Donald <struan@exo.org.uk>2012-03-14 21:52:16 +0000
commit91859b4f7df490001df3a54067fc01929cb0490f (patch)
treeb6b36117e2e30d80f926e40aea7f3723b61ae4df /perllib/FixMyStreet/TestMech.pm
parentf66b805206f7e28d96161fa9abc077c0a9d60b2c (diff)
parent491d21469a34b028c00eed7a0f26ff7f3725dcb0 (diff)
Merge remote-tracking branch 'origin/master' into phonegap
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r--perllib/FixMyStreet/TestMech.pm2
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 );