visit page_with_token 'active', '/'
find('nav a', text: 'Folders').click
find('tr', text: 'A Folder').
- find('a', text: 'zzzzz-').
+ find('a,button', text: 'Show').
click
within('.panel', text: api_fixture('groups')['afolder']['name']) do
find('span', text: api_fixture('groups')['afolder']['name']).click
find('.glyphicon-ok').click
find('.btn', text: 'Edit description').click
- find('textarea').set('I just edited this.')
- find('.glyphicon-ok').click
+ find('.editable-input textarea').set('I just edited this.')
+ find('.editable-submit').click
end
- find('.panel', text: 'I just edited this.')
+ #find('.panel', text: 'I just edited this.')
end
end
assert (text.include? 'true false'), 'Expected is_active'
end
- click_link 'zzzzz-tpzed-xurymjxw79nv3jz'
+ find('tr', text: 'zzzzz-tpzed-xurymjxw79nv3jz').
+ find('a,button', text: 'Show').
+ click
assert page.has_text? 'Attributes'
assert page.has_text? 'Metadata'
assert page.has_text? 'Admin'
click_button "Submit"
end
- sleep(0.1)
-
- # verify that the new user showed up in the users page
- assert page.has_text? 'foo@example.com'
-
- new_user_uuid = nil
- all("tr").each do |elem|
- if elem.text.include? 'foo@example.com'
- new_user_uuid = elem.text.split[0]
- break
- end
- end
+ sleep 0.1
+ # verify that the new user showed up in the users page and find
+ # the new user's UUID
+ new_user_uuid =
+ find('tr[data-object-uuid]', text: 'foo@example.com').
+ find('td', text: '-tpzed-').
+ text
assert new_user_uuid, "Expected new user uuid not found"
# go to the new user's page
- click_link new_user_uuid
+ find('tr', text: new_user_uuid).
+ find('a,button', text: 'Show').
+ click
assert page.has_text? 'modified_by_user_uuid'
page.within(:xpath, '//span[@data-name="is_active"]') do
click_link 'Users'
- assert page.has_link? 'zzzzz-tpzed-xurymjxw79nv3jz'
-
# click on active user
- click_link 'zzzzz-tpzed-xurymjxw79nv3jz'
+ find('tr', text: 'zzzzz-tpzed-xurymjxw79nv3jz').
+ find('a,button', text: 'Show').
+ click
# Setup user
click_link 'Admin'
click_link 'Users'
- assert page.has_link? 'zzzzz-tpzed-xurymjxw79nv3jz'
-
# click on active user
- click_link 'zzzzz-tpzed-xurymjxw79nv3jz'
+ find('tr', text: 'zzzzz-tpzed-xurymjxw79nv3jz').
+ find('a,button', text: 'Show').
+ click
# Verify that is_active is set
click_link 'Attributes'