Merge branch 'master' into 6588-split-manage-account
[arvados.git] / apps / workbench / test / integration / user_profile_test.rb
index 9fa7afa8f0b2fb769fa9c81de914ad8f04658b16..05f3c65db71ce50d1ecb6c4ff39c930515b15cfc 100644 (file)
@@ -47,14 +47,17 @@ class UserProfileTest < ActionDispatch::IntegrationTest
         assert page.has_link?('Log in'), 'Not found link - Log in'
       else
         # my account menu
-        assert page.has_link?("#{user['email']}"), 'Not found link - email'
-        find('a', text: "#{user['email']}").click
+        assert(page.has_link?("notifications-menu"), 'no user menu')
+        page.find("#notifications-menu").click
         within('.dropdown-menu') do
           if user['is_active']
             assert page.has_no_link?('Not active'), 'Found link - Not active'
             assert page.has_no_link?('Sign agreements'), 'Found link - Sign agreements'
 
-            assert page.has_link?('Manage account'), 'No link - Manage account'
+            assert page.has_link?('My virtual machines'), 'No link - My Virtual Machines'
+            assert page.has_link?('My repositories'), 'No link - My Repositories'
+            assert page.has_link?('My current token'), 'No link - My Current Token'
+            assert page.has_link?('My SSH keys'), 'No link - My SSH Keys'
 
             if profile_config
               assert page.has_link?('Manage profile'), 'No link - Manage profile'