From patchwork Tue Dec 5 00:53:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alassane Yattara X-Patchwork-Id: 35650 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 98FB1C10DCE for ; Tue, 5 Dec 2023 00:54:05 +0000 (UTC) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) by mx.groups.io with SMTP id smtpd.web11.87933.1701737642047075700 for ; Mon, 04 Dec 2023 16:54:02 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=TRvOQ1cG; 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 62FD19C4024 for ; Mon, 4 Dec 2023 19:54:01 -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 htZTjUQs1IJa; Mon, 4 Dec 2023 19:54:01 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 253069C4027; Mon, 4 Dec 2023 19:54:01 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com 253069C4027 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1701737641; bh=cZ/HAjIUty8oe60jm8VAiaBm1mpt2UtM83cgX+hS/aM=; h=From:To:Date:Message-Id:MIME-Version; b=TRvOQ1cGVWWUU7ljT9IY3Iqmor0tG43Spn4zK4OhovyffuxHIOLxPLw9cOF+j3NMy 7oTKbmh4IN2jHizjLevjWfQezD667FeWA/i4ndi5sWEIBmWrAyzqVkBFdV4OohqH3U xLjJtLBTIndeilRfT0EgJTB/Lv+gLqqTnrXBDVGb2lVIG2jS/LOABniiADvLc+/Eet cf9K0Ns4JTyshvvcsSU1xQz9P2VnKkM+PJwh/qtyrGU8T+cyuz/CCsL9LRhSCh+dnu D1SiYa7V1L7pQAj06xPKsu8B82S/bVrTrXGgt/6NxPgzc/V6KaJ95BdzuVToIWH91s 1BIwM916Dn1KA== 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 02k9mGiKI95s; Mon, 4 Dec 2023 19:54:01 -0500 (EST) Received: from jedi.. (unknown [196.127.183.75]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 8BB1B9C402C; Mon, 4 Dec 2023 19:54:00 -0500 (EST) From: Alassane Yattara To: toaster@lists.yoctoproject.org Cc: Alassane Yattara Subject: [PATCH v2 3/3] toaster/test: from test_no_builds_message.py wait for the empty state div to appear Date: Tue, 5 Dec 2023 01:53:51 +0100 Message-Id: <20231205005351.475335-3-alassane.yattara@savoirfairelinux.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231205005351.475335-1-alassane.yattara@savoirfairelinux.com> References: <20231205005351.475335-1-alassane.yattara@savoirfairelinux.com> 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 ; Tue, 05 Dec 2023 00:54:05 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/toaster/message/6049 From tests/browser/test_sample.py wait for the empty state div to appear Signed-off-by: Alassane Yattara --- lib/toaster/tests/browser/test_sample.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/toaster/tests/browser/test_sample.py b/lib/toaster/tests/browser/test_sample.py index 73973778..f04f1d9a 100644 --- a/lib/toaster/tests/browser/test_sample.py +++ b/lib/toaster/tests/browser/test_sample.py @@ -32,6 +32,7 @@ class TestSample(SeleniumTestCase): """ Test that a message is shown when there are no builds """ url = reverse('all-builds') self.get(url) + self.wait_until_visible('#empty-state-allbuildstable') # wait for the empty state div to appear div_msg = self.find('#empty-state-allbuildstable .alert-info') msg = 'Sorry - no data found'