'Scenario: The user should be able to remove a membership
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 Membership button
And When I click the edit membership button
Then I should see the edit membership page
And When I click the remove button and cancel the dialog
Then my membership should not be removed, and I should remain on the page'

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

    self.edit_membership_helper(role, cancel=True)
