mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 23:39:40 +01:00
bitbake: toaster/tests: Add UI TestCase to test if 'no build' message is shown
In all builds page, check if 'no build' message is shown when there are no build. (Bitbake rev: 4aa2a4e464a9bd85e1e22c87d0d7b54a5a899745) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
abf3e54d11
commit
0766f6cdc8
@@ -27,3 +27,12 @@ class TestSample(SeleniumTestCase):
|
||||
self.get(url)
|
||||
brand_link = self.find('.toaster-navbar-brand a.brand')
|
||||
self.assertEqual(brand_link.text.strip(), 'Toaster')
|
||||
|
||||
def test_no_builds_message(self):
|
||||
""" Test that a message is shown when there are no builds """
|
||||
url = reverse('all-builds')
|
||||
self.get(url)
|
||||
div_msg = self.find('#empty-state-allbuildstable .alert-info')
|
||||
|
||||
msg = 'Sorry - no data found'
|
||||
self.assertEqual(div_msg.text, msg)
|
||||
|
||||
Reference in New Issue
Block a user