'Scenario: The user should be able to see and navigate to the delete team page.
Given I am staff user for a course with a team
When I visit the Team profile page
Then I should see the Edit Team button
And When I click edit team button
Then I should see the Delete Team button
When I click the delete team button
And I confirm the prompt
Then I should see the browse teams page
And the team should not be present'

@ddt.data('Moderator', 'Community    TA', 'Administrator', None)
def test_delete_team(self, role):

    if (role is not None):
        AutoAuthPage(self.browser, course_id=self.course_id, staff=False, roles=role).visit()
    self.team_page.visit()
    self.delete_team(require_notification=False)
    browse_teams_page = BrowseTeamsPage(self.browser, self.course_id, self.topic)
    browse_teams_page.wait_for_page()
    self.assertNotIn(self.team['name'], browse_teams_page.team_names)
