Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test bug due to addition of avatars #62

Merged
merged 1 commit into from
Jan 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cadasta/test/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2.10'
__version__ = '0.2.10.1'
8 changes: 6 additions & 2 deletions cadasta/test/organization_tests/test_user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ def test_org_admin_can_view_the_membership_page_of_an_org_member(
select = Select(self.wd.BY_CSS('.dataTables_length select'))
select.select_by_value('25')
label = member['full_name'] or member['username']
self.wd.BY_LINK(label).click()
link = self.wd.BY_LINK(label)
self.scroll_element_into_view(link)
link.click()
content = self.wd.BY_CLASS('content-single')

def content_contains_text(text):
Expand Down Expand Up @@ -177,7 +179,9 @@ def test_non_org_admin_cannot_view_the_membership_page_of_an_org_member(
select = Select(self.wd.BY_CSS('.dataTables_length select'))
select.select_by_value('25')
label = member['full_name'] or member['username']
self.wd.BY_LINK(label).click()
link = self.wd.BY_LINK(label)
self.scroll_element_into_view(link)
link.click()
self.wait_for_alert(
"You don't have permission to edit roles of this organization")

Expand Down