diff mbox series

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

Message ID 20231205163950.149647-3-alassane.yattara@savoirfairelinux.com
State New
Headers show
Series [v3,1/4] toaster/test: bug-fix on tests/browser/test_all_builds_page | expand

Commit Message

Alassane Yattara Dec. 5, 2023, 4:39 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'