6588: Removed last reference to manage account page and reworded tests
authorManoj <jonam33@gmail.com>
Wed, 5 Aug 2015 14:30:25 +0000 (10:30 -0400)
committerManoj <jonam33@gmail.com>
Wed, 5 Aug 2015 14:30:25 +0000 (10:30 -0400)
to not use manage account.

apps/workbench/test/integration/user_settings_menu_test.rb
services/api/app/views/user_notifier/account_is_setup.text.erb
services/api/test/functional/arvados/v1/users_controller_test.rb

index c2a2f8a89d84fd0350e271a86e8e4e8a9cd3f15d..57f62d585631f97163201347bccd3c20aa6db98f 100644 (file)
@@ -5,8 +5,8 @@ class UserSettingsMenuTest < ActionDispatch::IntegrationTest
     need_javascript
   end
 
-  # test manage_account page
-  def verify_manage_account user
+  # test ssh_keys page
+  def verify_settings_menu user
     if user['is_active']
       within('.navbar-fixed-top') do
         page.find("#notifications-menu").click
@@ -66,9 +66,9 @@ class UserSettingsMenuTest < ActionDispatch::IntegrationTest
     ['active', api_fixture('users')['active']],
     ['admin', api_fixture('users')['admin']],
   ].each do |token, user|
-    test "test manage account for user #{token}" do
+    test "test settings menu for user #{token}" do
       visit page_with_token(token)
-      verify_manage_account user
+      verify_settings_menu user
     end
   end
 
@@ -84,7 +84,7 @@ class UserSettingsMenuTest < ActionDispatch::IntegrationTest
     ['job_reader', :ssh, :pipeline],
     ['active'],
   ].each do |user, *expect|
-    test "manage account for #{user} with notifications #{expect.inspect}" do
+    test "settings menu for #{user} with notifications #{expect.inspect}" do
       Rails.configuration.anonymous_user_token = false
       visit page_with_token(user)
       click_link 'notifications-menu'
index 480b6dd8c7e48e29844fdab45e4301007d8df8fa..8f9e05869d1b4d0e2fd9f6ac5a608cad128edda0 100644 (file)
@@ -4,9 +4,9 @@
 Hi there,
 <% end -%>
 
-Your Arvados shell account has been set up. Please visit the manage account page <% if Rails.configuration.workbench_address %>at
+Your Arvados shell account has been set up. Please visit the virtual machines page <% if Rails.configuration.workbench_address %>at
 
-  <%= Rails.configuration.workbench_address %>/manage_account <% else %><% end %>
+  <%= Rails.configuration.workbench_address %>users/<%= @user.uuid%>/virtual_machines <% else %><% end %>
 
 for connection instructions.
 
index c4a99648cb25982723b370afdb5e61d31d3ef427..62ed8789fa8ce541d7976bf48bc4bc33ffdb8980 100644 (file)
@@ -656,6 +656,8 @@ class Arvados::V1::UsersControllerTest < ActionController::TestCase
     assert_equal 'Welcome to Curoverse - shell account enabled', setup_email.subject
     assert (setup_email.body.to_s.include? 'Your Arvados shell account has been set up'),
         'Expected Your Arvados shell account has been set up in email body'
+    assert (setup_email.body.to_s.include? '/virtual_machines'),
+        'Expected /virtual_machines link to appear in email body'
     assert (setup_email.body.to_s.include? Rails.configuration.workbench_address),
         'Expected workbench url in email body'
   end