This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring back UI for removing members from teams
- Loading branch information
1 parent
4e36bef
commit caedf84
Showing
3 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,25 @@ def test_owner_can_add_a_member(self): | |
self.css('#lookup-container button').first.click() | ||
assert [a.text for a in self.css('table#team a')] == ['alice'] | ||
|
||
|
||
def test_owner_can_remove_a_member(self): | ||
enterprise = self.make_team(available=500) | ||
alice = self.make_participant( 'alice' | ||
, claimed_time='now' | ||
, email_address='[email protected]' | ||
, verified_in='TT' | ||
) | ||
enterprise.add_member(alice, P('picard')) | ||
|
||
self.sign_in('picard') | ||
self.visit('/TheEnterprise/distributing/') | ||
self.css('table#team span.remove').first.click() | ||
time.sleep(0.1) | ||
self.get_alert().accept() | ||
time.sleep(0.2) | ||
assert enterprise.get_memberships() == [] | ||
|
||
|
||
def test_totals_are_as_expected(self): | ||
enterprise = self.make_team(available=500) | ||
alice = self.make_participant( 'alice' | ||
|