diff options
| author | Alassane Yattara <alassane.yattara@savoirfairelinux.com> | 2023-11-29 23:54:16 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-02 18:04:23 +0000 |
| commit | 5b18ff6d6bef14cf590be4649b4d27134928c23b (patch) | |
| tree | e6794a1168d876ca3f3c804264b32b414611ab7d /bitbake | |
| parent | eb2af42e0a82a671700ff087db37ca0ba219efaa (diff) | |
| download | poky-5b18ff6d6bef14cf590be4649b4d27134928c23b.tar.gz | |
bitbake: toaster/tests: Test single recipe page
Test recipe page
- Check if title is displayed
- Check add recipe layer displayed
- Check left section is displayed
- Check recipe: name, summary, description, Version, Section,
License, Approx. packages included, Approx. size, Recipe file
(Bitbake rev: 4f16f6666ef7ccda0e7194f2107fcbbc8f915be4)
Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
| -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) | ||
