- check that the documentation link is visible
- check browser open new tab toaster manual when clicking on the documentation 
link

Signed-off-by: Alassane Yattara <[email protected]>
---
 lib/toaster/tests/browser/test_landing_page.py | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/lib/toaster/tests/browser/test_landing_page.py 
b/lib/toaster/tests/browser/test_landing_page.py
index a3aa2f93..771e627a 100644
--- a/lib/toaster/tests/browser/test_landing_page.py
+++ b/lib/toaster/tests/browser/test_landing_page.py
@@ -45,6 +45,21 @@ class TestLandingPage(SeleniumTestCase):
         self.assertTrue(info_modal.is_displayed())
         self.assertTrue("Toaster version information" in info_modal.text)
 
+    def test_documentation_link_displayed(self):
+        """ Test that the documentation link is displayed """
+        self.get(reverse('landing'))
+        documentation_link = self.find('#navbar-docs > a')
+
+        # check that the documentation link is visible
+        self.assertTrue(documentation_link.is_displayed())
+        
+        # check browser open new tab toaster manual when clicking on the 
documentation link
+        self.assertEqual(documentation_link.get_attribute('target') , '_blank')
+        self.assertEqual(
+            documentation_link.get_attribute('href'), 
+            
'http://docs.yoctoproject.org/toaster-manual/index.html#toaster-user-manual')
+        self.assertTrue("Documentation" in documentation_link.text)
+
     def test_only_default_project(self):
         """
         No projects except default
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5949): https://lists.yoctoproject.org/g/toaster/message/5949
Mute This Topic: https://lists.yoctoproject.org/mt/102487398/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/toaster/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to