def test_filter_results_by_name(self, mozwebqa): # Verify name in search matches query results query = u'Reps' people_page = People(mozwebqa) people_page.go_to_people_page() people_page.filter_for(query) Assert.contains(u'Reps', people_page.people_name_text) # Check profile to verify search results where search does not match name query = u'moz_reps_user' people_page = People(mozwebqa) people_page.go_to_people_page() people_page.filter_for(query) profile_page = people_page.click_to_open_profile() Assert.contains(query, profile_page.profile_text)
def test_profile_grid_is_visible(self, mozwebqa): people_page = People(mozwebqa) people_page.go_to_people_page() Assert.true(people_page.is_profile_grid_visible) Assert.true(people_page.is_profile_name_visible) Assert.true(people_page.is_profile_image_visible)
def test_people_map_is_visible(self, mozwebqa): people_page = People(mozwebqa) people_page.go_to_people_page() Assert.true(people_page.is_people_map_visible)
def test_profile_list_view(self, mozwebqa): people_page = People(mozwebqa) people_page.go_to_people_page() people_page.click_list_view() Assert.true(people_page.is_profile_list_visible)
def click_people_link(self): self.selenium.find_element(*self._people_menu_locator).click() from pages.people import People return People(self.testsetup)