diff options
Diffstat (limited to 'bitbake/lib/toaster/tests/browser/test_sample.py')
-rw-r--r-- | bitbake/lib/toaster/tests/browser/test_sample.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/tests/browser/test_sample.py b/bitbake/lib/toaster/tests/browser/test_sample.py index b0067c21cd..f04f1d9a16 100644 --- a/bitbake/lib/toaster/tests/browser/test_sample.py +++ b/bitbake/lib/toaster/tests/browser/test_sample.py | |||
@@ -27,3 +27,13 @@ class TestSample(SeleniumTestCase): | |||
27 | self.get(url) | 27 | self.get(url) |
28 | brand_link = self.find('.toaster-navbar-brand a.brand') | 28 | brand_link = self.find('.toaster-navbar-brand a.brand') |
29 | self.assertEqual(brand_link.text.strip(), 'Toaster') | 29 | self.assertEqual(brand_link.text.strip(), 'Toaster') |
30 | |||
31 | def test_no_builds_message(self): | ||
32 | """ Test that a message is shown when there are no builds """ | ||
33 | url = reverse('all-builds') | ||
34 | self.get(url) | ||
35 | self.wait_until_visible('#empty-state-allbuildstable') # wait for the empty state div to appear | ||
36 | div_msg = self.find('#empty-state-allbuildstable .alert-info') | ||
37 | |||
38 | msg = 'Sorry - no data found' | ||
39 | self.assertEqual(div_msg.text, msg) | ||