From patchwork Fri Jan 5 14:22:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alassane Yattara X-Patchwork-Id: 37388 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 732C2C3DA6E for ; Fri, 5 Jan 2024 14:22:26 +0000 (UTC) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) by mx.groups.io with SMTP id smtpd.web11.24390.1704464544846450229 for ; Fri, 05 Jan 2024 06:22:24 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=vC60kVoO; spf=pass (domain: savoirfairelinux.com, ip: 208.88.110.44, mailfrom: alassane.yattara@savoirfairelinux.com) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 3ED5D9C0490 for ; Fri, 5 Jan 2024 09:22:24 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10032) with ESMTP id WGrfIgGaMusB; Fri, 5 Jan 2024 09:22:24 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id E94789C15EF; Fri, 5 Jan 2024 09:22:23 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com E94789C15EF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1704464543; bh=zC8Xm5PNgHLrp/tyxGJR/FRG8sHStVe/P3PHe9xsRH4=; h=From:To:Date:Message-Id:MIME-Version; b=vC60kVoOhLzPC0y2rjH0yTLRRKClpBdJ+UJGe0oiviCXvPAlYip+l57athQmdXptX b8Vdyo4dm6IrKvoUFXTqYZHzTOgNDYT8AvA/aoxF+80H1PwVmn5Yw/F3xb2CpAYCWK 7BUJLEAI3rfSmjztGvIvoACtxsZCLmzeoEyjaCG0yfg+f+XmRf77pSd8/u6tJebuUK N7KL0v8ej2JGR+qJ8fHplR+BqSC5S7N3LEkjVOBksFzen9kdTBEUf2vguGz2Wk07SL e+MP68P9aX2to3+Cxn3l/FsxR9AjG9eTpWd5wOc3nGZv9b7UfW+Arkd+ZbcO2nvb4G fNX2f/BuqLFlQ== X-Virus-Scanned: amavis at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10026) with ESMTP id 04gMY4_JxFzx; Fri, 5 Jan 2024 09:22:23 -0500 (EST) Received: from jedi.. (unknown [196.127.183.75]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 173489C0490; Fri, 5 Jan 2024 09:22:22 -0500 (EST) From: Alassane Yattara To: toaster@lists.yoctoproject.org Cc: Alassane Yattara Subject: [PATCH 1/3] toaster/test: Bug-fix on TestProjectConfigTab::test_image_recipe_show_rows Date: Fri, 5 Jan 2024 15:22:16 +0100 Message-Id: <20240105142218.542729-1-alassane.yattara@savoirfairelinux.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 05 Jan 2024 14:22:26 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/toaster/message/6126 Check some rows are visible in table instead of compare table row to row_to_show, because recipe image table sometime doesn't display full avaiblable images Signed-off-by: Alassane Yattara --- lib/toaster/tests/functional/test_project_page_tab_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/toaster/tests/functional/test_project_page_tab_config.py b/lib/toaster/tests/functional/test_project_page_tab_config.py index ee1f5c4b..d027e0bc 100644 --- a/lib/toaster/tests/functional/test_project_page_tab_config.py +++ b/lib/toaster/tests/functional/test_project_page_tab_config.py @@ -254,8 +254,9 @@ class TestProjectConfigTab(SeleniumFunctionalTestCase): # Check that we can show rows == row_to_show show_row_link.select_by_value(str(row_to_show)) self.wait_until_visible('#imagerecipestable tbody tr') + # check at least some rows are visible self.assertTrue( - len(self.find_all('#imagerecipestable tbody tr')) == row_to_show + len(self.find_all('#imagerecipestable tbody tr')) > 0 ) self._navigate_to_project_page()