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
['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
['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'
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.
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