From 3644963495f002bbde1d201a756f981c5f8449c6 Mon Sep 17 00:00:00 2001 From: Alexander Gromov Date: Fri, 12 Feb 2016 18:08:05 +0300 Subject: [PATCH] Added test on filter apps by new category. Added test on package importing with new category and verification that the added application is displayed if we try to filter applications by new category on the Applications page. Targets: blueprint murano-ui-integration-test-coverage Change-Id: I8cbcc6a67b8198a925d6479362fe9bebedc4a542 --- .../tests/functional/sanity_check.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/muranodashboard/tests/functional/sanity_check.py b/muranodashboard/tests/functional/sanity_check.py index 0fc0606e3..4df05a67e 100644 --- a/muranodashboard/tests/functional/sanity_check.py +++ b/muranodashboard/tests/functional/sanity_check.py @@ -1326,3 +1326,27 @@ class TestSuitePackageCategory(base.PackageTestCase): self.go_to_submenu('Categories') self.check_element_on_page( by.By.XPATH, c.CategoryPackageCount.format(self.category, 0)) + + def test_filter_by_new_category(self): + """Filter by new category from Applications page + + Scenario: + 1. Log into OpenStack Horizon dashboard as admin user + 2. Navigate to 'Categories' page + 2. Click on 'Add Category' button + 3. Create new category and check it's browsed in the table + 4. Navigate to 'Packages' page + 5. Click on 'Import Package' button + 6. Import package and select created 'test' category for it + 7. Navigate to "Applications" page + 8. Select new category in "App category" dropdown list + """ + self._import_package_with_category(self.archive, self.category) + self.navigate_to('Application_Catalog') + self.go_to_submenu('Applications') + self.driver.find_element_by_xpath( + c.CategorySelector.format('All')).click() + self.driver.find_element_by_partial_link_text(self.category).click() + + self.check_element_on_page( + by.By.XPATH, c.App.format(self.archive_name))