X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1ddbf7371a838cd8a8be50eb823f58796c46b2b9..f8991d36180bf9c2c261dee519b0c878306a35d5:/apps/workbench/test/integration/users_test.rb diff --git a/apps/workbench/test/integration/users_test.rb b/apps/workbench/test/integration/users_test.rb index b5bf2415c2..58432f7d5e 100644 --- a/apps/workbench/test/integration/users_test.rb +++ b/apps/workbench/test/integration/users_test.rb @@ -70,7 +70,7 @@ class UsersTest < ActionDispatch::IntegrationTest # verify that the new user showed up in the users page and find # the new user's UUID - new_user_uuid = + new_user_uuid = find('tr[data-object-uuid]', text: 'foo@example.com')['data-object-uuid'] assert new_user_uuid, "Expected new user uuid not found" @@ -106,6 +106,7 @@ class UsersTest < ActionDispatch::IntegrationTest find('tr', text: 'zzzzz-tpzed-xurymjxw79nv3jz'). find('a', text: 'Show'). click + user_url = page.current_url # Setup user click_link 'Admin' @@ -119,6 +120,7 @@ class UsersTest < ActionDispatch::IntegrationTest click_button "Submit" end + visit user_url assert page.has_text? 'modified_by_client_uuid' click_link 'Advanced' @@ -136,6 +138,7 @@ class UsersTest < ActionDispatch::IntegrationTest click_button "Submit" end + visit user_url find '#Attributes', text: 'modified_by_client_uuid' click_link 'Advanced' @@ -161,6 +164,7 @@ class UsersTest < ActionDispatch::IntegrationTest find('tr', text: 'zzzzz-tpzed-xurymjxw79nv3jz'). find('a', text: 'Show'). click + user_url = page.current_url # Verify that is_active is set find('a,button', text: 'Attributes').click @@ -202,6 +206,7 @@ class UsersTest < ActionDispatch::IntegrationTest click_button "Submit" end + visit user_url assert page.has_text? 'modified_by_client_uuid' click_link 'Advanced'