コード例 #1
0
ファイル: test_teams.py プロジェクト: amitverma12/qmo-tests
    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))
コード例 #2
0
    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))
コード例 #3
0
    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')
コード例 #4
0
ファイル: test_teams.py プロジェクト: amitverma12/qmo-tests
    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')