[ARVADOS] updated: a151775ef143f280f7ea2a3729b0b33c7b1b5944

git at public.curoverse.com git at public.curoverse.com
Mon Oct 6 17:34:36 EDT 2014


Summary of changes:
 apps/workbench/test/integration/users_test.rb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

       via  a151775ef143f280f7ea2a3729b0b33c7b1b5944 (commit)
      from  38cc5c0a51657c6b60f3d3f32c566845988dfb6b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit a151775ef143f280f7ea2a3729b0b33c7b1b5944
Author: Brett Smith <brett at curoverse.com>
Date:   Mon Oct 6 17:36:31 2014 -0400

    3634: Update user setup tests for preserved tab state.
    
    These tests assume that the page reloads after submitting Ajax
    dialogs.  They started failing when we started preserving tab state.
    Update the tests to expressly refresh the page.  Future improvements
    might find a solution with lower overhead.
    
    Refs #3634.

diff --git a/apps/workbench/test/integration/users_test.rb b/apps/workbench/test/integration/users_test.rb
index b5bf241..58432f7 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 at 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'

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list