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

>From tests/browser/test_sample.py wait for the empty state div to appear

(Bitbake rev: 56ea671526d6ec81b0d69f1bab6ac8f6796b8018)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alassane Yattara
2023-12-05 01:54:11 +01:00
committed by Richard Purdie
parent 2d1f6c055d
commit 8efe835e3b

View File

@@ -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'