diff options
Diffstat (limited to 'bitbake/lib/toaster/tests/functional')
-rw-r--r-- | bitbake/lib/toaster/tests/functional/test_project_page.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/tests/functional/test_project_page.py b/bitbake/lib/toaster/tests/functional/test_project_page.py index 771a848412..03f64f8fef 100644 --- a/bitbake/lib/toaster/tests/functional/test_project_page.py +++ b/bitbake/lib/toaster/tests/functional/test_project_page.py | |||
@@ -756,3 +756,35 @@ class TestProjectPage(SeleniumFunctionalTestCase): | |||
756 | self.assertTrue("Summary" in section.text) | 756 | self.assertTrue("Summary" in section.text) |
757 | # Check layer description | 757 | # Check layer description |
758 | self.assertTrue("Description" in section.text) | 758 | self.assertTrue("Description" in section.text) |
759 | |||
760 | def test_single_recipe_page(self): | ||
761 | """ Test recipe page | ||
762 | - Check if title is displayed | ||
763 | - Check add recipe layer displayed | ||
764 | - Check left section is displayed | ||
765 | - Check recipe: name, summary, description, Version, Section, | ||
766 | License, Approx. packages included, Approx. size, Recipe file | ||
767 | """ | ||
768 | url = reverse("recipedetails", args=(1, 53428)) | ||
769 | self.get(url) | ||
770 | self.wait_until_visible('.page-header') | ||
771 | # check title is displayed | ||
772 | self.assertTrue(self.find('.page-header h1').is_displayed()) | ||
773 | # check add recipe layer displayed | ||
774 | add_recipe_layer_btn = self.find('#add-layer-btn') | ||
775 | self.assertTrue(add_recipe_layer_btn.is_displayed()) | ||
776 | # check left section is displayed | ||
777 | section = self.find('.well') | ||
778 | # Check recipe name | ||
779 | self.assertTrue( | ||
780 | section.find_element(By.XPATH, '//h2[1]').is_displayed() | ||
781 | ) | ||
782 | # Check recipe sections details info are displayed | ||
783 | self.assertTrue("Summary" in section.text) | ||
784 | self.assertTrue("Description" in section.text) | ||
785 | self.assertTrue("Version" in section.text) | ||
786 | self.assertTrue("Section" in section.text) | ||
787 | self.assertTrue("License" in section.text) | ||
788 | self.assertTrue("Approx. packages included" in section.text) | ||
789 | self.assertTrue("Approx. package size" in section.text) | ||
790 | self.assertTrue("Recipe file" in section.text) | ||