Skip to content

Commit

Permalink
tests: Improve failure when comparing expected image results fails
Browse files Browse the repository at this point in the history
Using `diag explain` here so we're still checking the whole structure.

See: https://progress.opensuse.org/issues/132410
  • Loading branch information
kalikiana committed Jul 21, 2023
1 parent 877fa4a commit 7170efd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/ui/18-tests-details.t
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ subtest 'show job modules execution time' => sub {
subtest 'displaying image result with candidates' => sub {
$driver->find_element('[href="#step/bootloader/1"]')->click();
wait_for_ajax;
is_deeply(find_candidate_needles, {'inst-bootmenu' => []}, 'correct tags displayed');
my $needles = find_candidate_needles;
is_deeply($needles, {'inst-bootmenu' => []}, 'correct tags displayed') or diag explain $needles;
};

subtest 'filtering' => sub {
Expand Down

0 comments on commit 7170efd

Please sign in to comment.