diff options
author | Dave Arter <davea@mysociety.org> | 2017-02-15 17:42:25 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2017-02-15 17:42:25 +0000 |
commit | 957f2d968c17a34a6fa95bea6cb6a4eace229aa6 (patch) | |
tree | 28ff117ae830534ccd37d3bdc70c8e5dba7f53e9 /t/cobrand | |
parent | 54af489f0fe985dfc433f0b8a3ab226a470a6023 (diff) | |
parent | 4d44ea5530a7dc25122e5135c19d89b4cebc5f40 (diff) |
Merge branch 'issues/forcouncils/127-exor-rdi-csv-output'
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/oxfordshire.t | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/t/cobrand/oxfordshire.t b/t/cobrand/oxfordshire.t index d9f880d07..b0fad3b56 100644 --- a/t/cobrand/oxfordshire.t +++ b/t/cobrand/oxfordshire.t @@ -45,6 +45,29 @@ subtest 'check /ajax defaults to open reports only' => sub { } }; +my $superuser = $mech->create_user_ok('superuser@example.com', name => 'Super User', is_superuser => 1); + +subtest 'Exor RDI download appears on Oxfordshire cobrand admin' => sub { + FixMyStreet::override_config { + ALLOWED_COBRANDS => [ { 'oxfordshire' => '.' } ], + }, sub { + $mech->log_in_ok( $superuser->email ); + $mech->get_ok('/admin'); + $mech->content_contains("Download Exor RDI"); + } +}; + +subtest 'Exor RDI download doesn’t appear outside of Oxfordshire cobrand admin' => sub { + FixMyStreet::override_config { + ALLOWED_COBRANDS => [ { 'fixmystreet' => '.' } ], + }, sub { + $mech->log_in_ok( $superuser->email ); + $mech->get_ok('/admin'); + $mech->content_lacks("Download Exor RDI"); + } +}; + # Clean up +$mech->delete_user( $superuser ); $mech->delete_problems_for_body( 2237 ); done_testing(); |