summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/tests/browser/test_landing_page.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/tests/browser/test_landing_page.py')
-rw-r--r--bitbake/lib/toaster/tests/browser/test_landing_page.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/tests/browser/test_landing_page.py b/bitbake/lib/toaster/tests/browser/test_landing_page.py
index 8bb64b9f3e..a3aa2f9346 100644
--- a/bitbake/lib/toaster/tests/browser/test_landing_page.py
+++ b/bitbake/lib/toaster/tests/browser/test_landing_page.py
@@ -29,6 +29,22 @@ class TestLandingPage(SeleniumTestCase):
29 self.project.is_default = True 29 self.project.is_default = True
30 self.project.save() 30 self.project.save()
31 31
32 def test_icon_info_visible_and_clickable(self):
33 """ Test that the information icon is visible and clickable """
34 self.get(reverse('landing'))
35 info_sign = self.find('#toaster-version-info-sign')
36
37 # check that the info sign is visible
38 self.assertTrue(info_sign.is_displayed())
39
40 # check that the info sign is clickable
41 # and info modal is appearing when clicking on the info sign
42 info_sign.click() # click on the info sign make attribute 'aria-describedby' visible
43 info_model_id = info_sign.get_attribute('aria-describedby')
44 info_modal = self.find(f'#{info_model_id}')
45 self.assertTrue(info_modal.is_displayed())
46 self.assertTrue("Toaster version information" in info_modal.text)
47
32 def test_only_default_project(self): 48 def test_only_default_project(self):
33 """ 49 """
34 No projects except default 50 No projects except default