'Scenario: The user should be able to cancel the editing of team.
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 edit team page
Then I should see the Edit Team header
When I click Cancel button
Then I should see team page page without changes.'

def test_staff_can_cancel_the_team_edit(self):

    self.verify_team_info(name=self.team['name'], description=self.team['description'], location='Afghanistan', language='Afar')
    self.verify_and_navigate_to_edit_team_page()
    self.fill_create_or_edit_form()
    self.team_management_page.cancel_team()
    self.team_page.wait_for_page()
    self.verify_team_info(name=self.team['name'], description=self.team['description'], location='Afghanistan', language='Afar')
