summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
diff options
context:
space:
mode:
authorAlassane Yattara <alassane.yattara@savoirfairelinux.com>2023-11-09 16:16:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-09 17:03:24 +0000
commit6031006582ce770c9a676bdb599ce71922092fc0 (patch)
treed552116ce6e5f4dfc8c6c147e6f7a8b0ba57d32a /bitbake/lib/toaster
parentb1156a1a1ba5d865a993db741098e700801e1cb5 (diff)
downloadpoky-6031006582ce770c9a676bdb599ce71922092fc0.tar.gz
bitbake: toaster: Test documentation link in landing header is displayed
- check that the documentation link is visible - check browser open new tab toaster manual when clicking on the documentation link (Bitbake rev: befe970fcc7742cf266e03849be36c733bb09de6) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster')
-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