Skip to content

Commit

Permalink
[Glos] Remove "This report is closed to updates" text
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismytton committed Dec 7, 2023
1 parent f3eb247 commit 4ac3b8e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 47 deletions.
46 changes: 0 additions & 46 deletions t/cobrand/gloucestershire.t
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,6 @@ FixMyStreet::override_config {
'No admin sidebar',
);
if ( $host eq 'gloucestershire' ) {
$mech->content_contains(
'This report is closed to updates.',
'Correct message shown',
);
$mech->content_lacks(
'make a new report in the same location',
'Lacks option to make a new report in same location',
Expand Down Expand Up @@ -242,10 +238,6 @@ FixMyStreet::override_config {
'No admin sidebar',
);
if ( $host eq 'gloucestershire' ) {
$mech->content_contains(
'This report is closed to updates.',
'Correct message shown',
);
$mech->content_lacks(
'make a new report in the same location',
'Lacks option to make a new report in same location',
Expand All @@ -264,10 +256,6 @@ FixMyStreet::override_config {
'No admin sidebar',
);
if ( $host eq 'gloucestershire' ) {
$mech->content_contains(
'This report is closed to updates.',
'Correct message shown',
);
$mech->content_lacks(
'make a new report in the same location',
'Lacks option to make a new report in same location',
Expand Down Expand Up @@ -296,12 +284,6 @@ FixMyStreet::override_config {
'form name="report_inspect_form" id="report_inspect_form"',
'No admin sidebar',
);
if ( $host eq 'gloucestershire' ) {
$mech->content_lacks(
'This report is closed to updates.',
'"Closed to updates" message not shown',
);
}

note 'Superuser';
$mech->log_in_ok( $superuser->email );
Expand All @@ -322,12 +304,6 @@ FixMyStreet::override_config {
'form name="report_inspect_form" id="report_inspect_form"',
'Shown admin sidebar',
);
if ( $host eq 'gloucestershire' ) {
$mech->content_lacks(
'This report is closed to updates.',
'"Closed to updates" message not shown',
);
}
}
};

Expand Down Expand Up @@ -355,10 +331,6 @@ FixMyStreet::override_config {
'No admin sidebar',
);
if ( $host eq 'gloucestershire' ) {
$mech->content_contains(
'This report is closed to updates.',
'Correct message shown',
);
$mech->content_contains(
'make a new report in the same location',
'Option to make a new report in same location',
Expand All @@ -385,12 +357,6 @@ FixMyStreet::override_config {
'form name="report_inspect_form" id="report_inspect_form"',
'No admin sidebar',
);
if ( $host eq 'gloucestershire' ) {
$mech->content_lacks(
'This report is closed to updates.',
'"Closed to updates" message not shown',
);
}

note 'Another standard user';
$mech->log_in_ok( $standard_user_2->email );
Expand All @@ -404,10 +370,6 @@ FixMyStreet::override_config {
'No admin sidebar',
);
if ( $host eq 'gloucestershire' ) {
$mech->content_contains(
'This report is closed to updates.',
'Correct message shown',
);
$mech->content_contains(
'make a new report in the same location',
'Option to make a new report in same location',
Expand All @@ -429,10 +391,6 @@ FixMyStreet::override_config {
'No admin sidebar',
);
if ( $host eq 'gloucestershire' ) {
$mech->content_contains(
'This report is closed to updates.',
'Correct message shown',
);
$mech->content_contains(
'make a new report in the same location',
'Option to make a new report in same location',
Expand All @@ -451,10 +409,6 @@ FixMyStreet::override_config {
'Shown admin sidebar',
);
if ( $host eq 'gloucestershire' ) {
$mech->content_contains(
'This report is closed to updates.',
'Correct message shown',
);
$mech->content_contains(
'make a new report in the same location',
'Option to make a new report in same location',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<p>
[% loc('This report is closed to updates.') %]
[% IF !problem.is_open %]
[% tprintf(loc('If the issue is still ongoing, you can <a href="%s">make a new report in the same location</a>.'),
c.uri_for( '/report/new', { longitude = longitude, latitude = latitude } )
Expand Down

0 comments on commit 4ac3b8e

Please sign in to comment.