summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/toaster/tests/browser/test_landing_page.py15
1 files changed, 15 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 a3aa2f9346..771e627a8d 100644
--- a/bitbake/lib/toaster/tests/browser/test_landing_page.py
+++ b/bitbake/lib/toaster/tests/browser/test_landing_page.py
@@ -45,6 +45,21 @@ class TestLandingPage(SeleniumTestCase):
45 self.assertTrue(info_modal.is_displayed()) 45 self.assertTrue(info_modal.is_displayed())
46 self.assertTrue("Toaster version information" in info_modal.text) 46 self.assertTrue("Toaster version information" in info_modal.text)
47 47
48 def test_documentation_link_displayed(self):
49 """ Test that the documentation link is displayed """
50 self.get(reverse('landing'))
51 documentation_link = self.find('#navbar-docs > a')
52
53 # check that the documentation link is visible
54 self.assertTrue(documentation_link.is_displayed())
55
56 # check browser open new tab toaster manual when clicking on the documentation link
57 self.assertEqual(documentation_link.get_attribute('target') , '_blank')
58 self.assertEqual(
59 documentation_link.get_attribute('href'),
60 'http://docs.yoctoproject.org/toaster-manual/index.html#toaster-user-manual')
61 self.assertTrue("Documentation" in documentation_link.text)
62
48 def test_only_default_project(self): 63 def test_only_default_project(self):
49 """ 64 """
50 No projects except default 65 No projects except default