From 38a3fde9bc4de27a60a0f8076a0bf9c4f5dea773 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Thu, 23 Mar 2023 17:24:14 +0100 Subject: [PATCH] Softfail when not found. --- tests/applications/software/browse_applications.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/applications/software/browse_applications.pm b/tests/applications/software/browse_applications.pm index badeb5e6..4951e12b 100644 --- a/tests/applications/software/browse_applications.pm +++ b/tests/applications/software/browse_applications.pm @@ -36,8 +36,13 @@ sub run { # Open the Play category. assert_and_click("software_category_play"); - assert_and_click("software_application_chess"); - check_application_information("chess"); + if (check_screen("software_application_chess")) { + click_lastmatch(); + check_application_information("chess"); + } + else { + record_soft_failure("The application was not listed on the first screen."); + } } sub test_flags {