From patchwork Tue Dec 5 00:54:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alassane Yattara X-Patchwork-Id: 35655 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 8EE04C10DCE for ; Tue, 5 Dec 2023 00:54:25 +0000 (UTC) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) by mx.groups.io with SMTP id smtpd.web11.87942.1701737658100060405 for ; Mon, 04 Dec 2023 16:54:18 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=BDpoR8hr; 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 798D09C3298 for ; Mon, 4 Dec 2023 19:54:17 -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 JWZcJPQPldwK; Mon, 4 Dec 2023 19:54:17 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 29DFF9C3D84; Mon, 4 Dec 2023 19:54:17 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com 29DFF9C3D84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1701737657; bh=cZ/HAjIUty8oe60jm8VAiaBm1mpt2UtM83cgX+hS/aM=; h=From:To:Date:Message-Id:MIME-Version; b=BDpoR8hrUMOVzWNxtppLmyybIIJJSZLIZsOdm3OZGCTRQDnpmZxAD2kRjhltq0Nwj 26zlDhguuKlqVQDMQbvNoBOs81Dx3eL/yZYQ3RugQOvhjXmC2HRUe5s9fKU96FAUP+ O41aSPadalFTIJRuni9+9lHfNE2PdbLwh9JcJMhY+Z/YjLEhnflITjRcHyy0NJKAjd onu8ug+UpfXctPLdi1rkK9UgHZfhZ2LvX1m3mhf5MSMuy3tOOFvTbKV0lOj6o5Gr58 wzttuRXiAybtp8wpQ4puIRcPNahJ84AgFobf9i+gw9EW5C98BnUMPO3YY7nhgRGPtA MtLV12jTOTc5g== 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 BIaVdWwRX7JT; Mon, 4 Dec 2023 19:54:17 -0500 (EST) Received: from jedi.. (unknown [196.127.183.75]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 9126D9C3298; Mon, 4 Dec 2023 19:54:16 -0500 (EST) From: Alassane Yattara To: bitbake-devel@lists.openembedded.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:54:11 +0100 Message-Id: <20231205005411.476971-3-alassane.yattara@savoirfairelinux.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231205005411.476971-1-alassane.yattara@savoirfairelinux.com> References: <20231205005411.476971-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:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/15612 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'