diff mbox series

[3/3] toaster/test: from test_no_builds_message.py wait for the empty state div to appear

Message ID 20231204224832.399005-3-alassane.yattara@savoirfairelinux.com
State Accepted, archived
Commit 56ea671526d6ec81b0d69f1bab6ac8f6796b8018
Headers show
Series [1/3] toaster/test: bug-fix on tests/browser/test_all_builds_page | expand

Commit Message

Alassane Yattara Dec. 4, 2023, 10:48 p.m. UTC
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 mbox series

Patch

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'