From patchwork Mon Dec 4 22:49:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alassane Yattara X-Patchwork-Id: 35644 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 D8721C4167B for ; Mon, 4 Dec 2023 22:49:44 +0000 (UTC) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) by mx.groups.io with SMTP id smtpd.web10.85525.1701730181873027058 for ; Mon, 04 Dec 2023 14:49:42 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=tLA+5DPD; 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 3D3B19C2C3B for ; Mon, 4 Dec 2023 17:49:41 -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 f6isyyk2vKIl; Mon, 4 Dec 2023 17:49:41 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 00FC29C3170; Mon, 4 Dec 2023 17:49:41 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com 00FC29C3170 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1701730181; bh=cZ/HAjIUty8oe60jm8VAiaBm1mpt2UtM83cgX+hS/aM=; h=From:To:Date:Message-Id:MIME-Version; b=tLA+5DPD/8rYvRmZXLlC6q3Gh0QIFDoJBNXScEM24wDd2e/dreQHXZ1XA4aofHp1C YVKTnVrpmuJc1YydM4jtyHAcMzAPynj4RE92VjLssXCkcXF1BqHH4LQiVoz56pxJc0 yjzegtMC3BJQzreQdZIqrJ1lLOhOhikBtnNFhJ5p3lpqmVBeZaoae4jlp5ELuNXVef 8suwesgvqwP6H99gt7Em9wUwCoZVQNNAyTxIq8owVMSgaDN08egYxw1NiWuDc/sVTr gJTuXYSACgw3qF7tMaF1KhN7tRW92PuvD2Gc1EcyEIaxgg4ffweFfzu4zG6XMxuG5n oI2UaJNrRLVhA== 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 A4-maaSfHPiR; Mon, 4 Dec 2023 17:49:40 -0500 (EST) Received: from jedi.. (unknown [196.127.183.75]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 5CD689C2C3B; Mon, 4 Dec 2023 17:49:40 -0500 (EST) From: Alassane Yattara To: toaster@lists.yoctoproject.org Cc: Alassane Yattara Subject: [PATCH 3/3] toaster/test: from test_no_builds_message.py wait for the empty state div to appear Date: Mon, 4 Dec 2023 23:49:27 +0100 Message-Id: <20231204224927.401802-3-alassane.yattara@savoirfairelinux.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231204224927.401802-1-alassane.yattara@savoirfairelinux.com> References: <20231204224927.401802-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 ; Mon, 04 Dec 2023 22:49:44 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/toaster/message/6048 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'