From: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
To: toaster@lists.yoctoproject.org
Cc: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Subject: [PATCH v3 3/4] toaster/test: from test_no_builds_message.py wait for the empty state div to appear
Date: Tue, 5 Dec 2023 17:39:49 +0100 [thread overview]
Message-ID: <20231205163950.149647-3-alassane.yattara@savoirfairelinux.com> (raw)
In-Reply-To: <20231205163950.149647-1-alassane.yattara@savoirfairelinux.com>
From tests/browser/test_sample.py wait for the empty state div to appear
Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
---
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'
--
2.34.1
next prev parent reply other threads:[~2023-12-05 16:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-05 16:39 [PATCH v3 1/4] toaster/test: bug-fix on tests/browser/test_all_builds_page Alassane Yattara
2023-12-05 16:39 ` [PATCH v3 2/4] toaster/test: Update pytest.init Alassane Yattara
2023-12-05 16:39 ` Alassane Yattara [this message]
2023-12-05 16:39 ` [PATCH v3 4/4] toaster/test: delay driver action until elements to appear Alassane Yattara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231205163950.149647-3-alassane.yattara@savoirfairelinux.com \
--to=alassane.yattara@savoirfairelinux.com \
--cc=toaster@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).