def test_that_after_viewing_reviews_clicking_back_goes_to_app_page(self, mozwebqa):
        """ Navigate to the reviews listing for an app from the URL (not by clicking through to it),
        click back, test that the current page is the app page.
        """
        reviews_page = Reviews(mozwebqa)
        reviews_page.go_to_reviews_page(self.app_name)

        Assert.true(reviews_page.is_reviews_list_visible)

        reviews_page.header.click_back()
        details_page = Details(mozwebqa)

        Assert.true(details_page.is_product_details_visible)
        Assert.equal(self.app_name, details_page.title)
    def test_that_after_viewing_reviews_clicking_back_goes_to_app_page(
            self, mozwebqa):
        """ Navigate to the reviews listing for an app from the URL (not by clicking through to it),
        click back, test that the current page is the app page.
        """
        reviews_page = Reviews(mozwebqa)
        reviews_page.go_to_reviews_page(self.app_name)

        Assert.true(reviews_page.is_reviews_list_visible)

        reviews_page.header.click_back()
        details_page = Details(mozwebqa)

        Assert.true(details_page.is_product_details_visible)
        Assert.equal(self.app_name, details_page.title)
 def click_view_reviews(self):
     view_reviews_button = self.selenium.find_element(
         *self._view_reviews_locator)
     WebDriverWait(
         self.selenium,
         self.timeout).until(lambda s: view_reviews_button.is_displayed())
     self.scroll_to_element(view_reviews_button)
     view_reviews_button.click()
     from pages.mobile.reviews import Reviews
     return Reviews(self.testsetup)
 def go_to_reviews_page(self):
     self.selenium.get('%s/ratings' %
                       self.selenium.current_url.split('?')[0])
     from pages.mobile.reviews import Reviews
     return Reviews(self.testsetup)
Beispiel #5
0
 def click_view_reviews(self):
     self.scroll_to_element(*self._view_reviews_locator)
     self.selenium.find_element(*self._view_reviews_locator).click()
     from pages.mobile.reviews import Reviews
     return Reviews(self.testsetup)