diff options
author | Alassane Yattara <alassane.yattara@savoirfairelinux.com> | 2023-10-30 21:48:08 +0100 |
---|---|---|
committer | Alassane Yattara <alassane.yattara@savoirfairelinux.com> | 2023-11-07 18:33:51 +0100 |
commit | 95017c8b38c67dfe48a84debaf21219f7fb80ec0 (patch) | |
tree | 2c4dcbb3a129c3518558aba0e38312559da9b245 | |
parent | 56e5c0f04167548ad075751ec9148aed1b591572 (diff) | |
download | bitbake-contrib-95017c8b38c67dfe48a84debaf21219f7fb80ec0.tar.gz |
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
Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
-rw-r--r-- | lib/toaster/tests/browser/test_landing_page.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/toaster/tests/browser/test_landing_page.py b/lib/toaster/tests/browser/test_landing_page.py index 2f092400a..e731af22e 100644 --- a/lib/toaster/tests/browser/test_landing_page.py +++ b/lib/toaster/tests/browser/test_landing_page.py @@ -46,6 +46,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 |