From e5d0d4c269f40bbb8b6af5dda60cf5bdb9306be9 Mon Sep 17 00:00:00 2001 From: Moray Jones Date: Tue, 11 Jun 2024 11:43:34 +0100 Subject: [PATCH] [Brent] Fixes intermittent test failure Deletes report created in one test that is interfering with another test. --- t/cobrand/brent.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/cobrand/brent.t b/t/cobrand/brent.t index b110370510d..39f9a54e887 100644 --- a/t/cobrand/brent.t +++ b/t/cobrand/brent.t @@ -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; };