diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2016-09-19 17:07:45 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-09-20 15:10:52 +0100 |
commit | ac8145c7ec2d648be0c687d2d0037757f4142eaf (patch) | |
tree | b4461616a580ab09529cd4983991d6da314b49a3 /t/app/controller/my_planned.t | |
parent | e9a5d2fb6e1985a0d946ad3574234784f4f659c4 (diff) |
Organize report admin actions into single control.
As part of this, rename "planned reports" to "shortlist".
The `.segmented-control` component now supports basic usage (as in the
admin report actions menu bar) and usage with hidden radio inputs and
labels (as on the report questionnaire page).
Diffstat (limited to 't/app/controller/my_planned.t')
-rw-r--r-- | t/app/controller/my_planned.t | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/t/app/controller/my_planned.t b/t/app/controller/my_planned.t index 25f82224e..7bd1dd2cd 100644 --- a/t/app/controller/my_planned.t +++ b/t/app/controller/my_planned.t @@ -13,8 +13,8 @@ my $body = $mech->create_body_ok(2237, 'Oxfordshire'); my ($problem) = $mech->create_problems_for_body(1, $body->id, 'Test Title'); $mech->get_ok($problem->url); -$mech->content_lacks('Add to planned reports'); -$mech->content_lacks('Remove from planned reports'); +$mech->content_lacks('Shortlist'); +$mech->content_lacks('Shortlisted'); my $user = $mech->log_in_ok( 'test@example.com' ); $user->update({ from_body => $body }); @@ -39,11 +39,11 @@ $mech->get_ok('/my/planned'); $mech->content_contains('Test Title'); $mech->get_ok($problem->url); -$mech->content_contains('Remove from planned reports'); +$mech->content_contains('Shortlisted'); $mech->submit_form_ok({ with_fields => { change => 'remove' } }); -$mech->content_contains('Add to planned reports'); +$mech->content_contains('Shortlist'); $mech->submit_form_ok({ with_fields => { change => 'add' } }); -$mech->content_contains('Remove from planned reports'); +$mech->content_contains('Shortlisted'); done_testing(); |