diff options
author | Struan Donald <struan@exo.org.uk> | 2012-03-30 12:40:08 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-03-30 12:40:08 +0100 |
commit | ff3926d0599b90f05e12b949205d8cc6e35df3be (patch) | |
tree | a2ad4c9248f876b5fb30ce9284e85c34f7bc4af2 | |
parent | 7df8650bb072c162e1dfa5d9622aef69b0f6a1fc (diff) |
make skip link following case insensitive
-rw-r--r-- | t/app/controller/report_new.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t index 625c7531f..0d9a45c40 100644 --- a/t/app/controller/report_new.t +++ b/t/app/controller/report_new.t @@ -293,7 +293,7 @@ foreach my $test ( is_deeply $mech->form_errors, [], "no errors for pc '$test->{pc}'"; # click through to the report page - $mech->follow_link_ok( { text => 'skip this step', }, + $mech->follow_link_ok( { text_regex => qr/skip this step/i, }, "follow 'skip this step' link" ); # submit the main form @@ -473,7 +473,7 @@ subtest "test password errors for a user who is signing in as they report" => su "submit location" ); # click through to the report page - $mech->follow_link_ok( { text => 'Skip this step', }, + $mech->follow_link_ok( { text_regex => qr/skip this step/i, }, "follow 'skip this step' link" ); $mech->submit_form_ok( @@ -520,7 +520,7 @@ subtest "test report creation for a user who is signing in as they report" => su "submit location" ); # click through to the report page - $mech->follow_link_ok( { text => 'Skip this step', }, + $mech->follow_link_ok( { text_regex => qr/skip this step/i, }, "follow 'skip this step' link" ); $mech->submit_form_ok( @@ -614,7 +614,7 @@ foreach my $test ( "submit location" ); # click through to the report page - $mech->follow_link_ok( { text => 'Skip this step', }, + $mech->follow_link_ok( { text_regex => qr/skip this step/i, }, "follow 'skip this step' link" ); # check that the fields are correctly prefilled |