def test_that_current_team_links_match_up_and_work(self, mozwebqa, team_name): teams_page = TeamsPage(mozwebqa) teams_page.go_to_teams_page() about_team_page = teams_page.open_team_page(team_name) Assert.true(about_team_page.is_the_current_page) Assert.contains( about_team_page.team_name, team_name, u'''Wrong team name. Expected: %s, but got: %s''' % (about_team_page.team_name, team_name))
def test_teams_page_consistency(self, mozwebqa): teams_page = TeamsPage(mozwebqa) teams_page.go_to_teams_page() listed_teams = teams_page.teams # check that all teams are listed Assert.equal(sorted(TEAM_NAMES), sorted([team.name for team in listed_teams]), u'Not all expected teams are present') # check for avatar, description and meta info for team in listed_teams: Assert.true(team.is_avatar_displayed, u'Team avatar is not displayed')
def test_teams_page_consistency(self, mozwebqa): teams_page = TeamsPage(mozwebqa) teams_page.go_to_teams_page() listed_teams = teams_page.teams # check that all teams are listed Assert.equal( sorted(TEAM_NAMES), sorted([team.name for team in listed_teams]), u'Not all expected teams are present') # check for avatar, description and meta info for team in listed_teams: Assert.true(team.is_avatar_displayed, u'Team avatar is not displayed')