Skip to content

Commit

Permalink
[Brent] Fixes intermittent test failure
Browse files Browse the repository at this point in the history
Deletes report created in one test that is interfering
with another test.
  • Loading branch information
MorayMySoc committed Jun 11, 2024
1 parent 942b803 commit e5d0d4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/cobrand/brent.t
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ subtest 'role report shows staff problem when staff logged in during problem rep
$mech->get_ok($mech->get_link_from_email($mech->get_email));
$mech->get_ok('/dashboard?body=' . $brent->id . '&state=&role=' . $role->id . '&start_date=&end_date=&group_by=category+state&export=1');
$mech->content_contains('"Spraypaint on wall","Some kind of picture"', 'Report has contributed_by set and so shows in roles report');
FixMyStreet::DB->resultset('Problem')->search(undef, { order_by => { -desc => 'id' } })->first->delete;
$mech->clear_emails_ok;
$mech->log_out_ok;
};
Expand Down

0 comments on commit e5d0d4c

Please sign in to comment.