6588: Added tests for new pages and modified existing tests to not use
[arvados.git] / apps / workbench / test / integration / user_profile_test.rb
index 9fa7afa8f0b2fb769fa9c81de914ad8f04658b16..9321396862340643d36c21a29b4d597ad0794ff3 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'