X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d2f68bd1e108c3f2dda2322c427050d019b17e04..e02bf11203b85a6baac31584b9ba451c92be21b3:/apps/workbench/test/integration/user_profile_test.rb diff --git a/apps/workbench/test/integration/user_profile_test.rb b/apps/workbench/test/integration/user_profile_test.rb index 9fa7afa8f0..86bf14a2f9 100644 --- a/apps/workbench/test/integration/user_profile_test.rb +++ b/apps/workbench/test/integration/user_profile_test.rb @@ -20,7 +20,7 @@ class UserProfileTest < ActionDispatch::IntegrationTest assert page.has_text?('Save profile'), 'No text - Save profile' add_profile user else - assert page.has_text?('Active pipelines'), 'Not found text - Active pipelines' + assert page.has_text?('Active processes'), 'Not found text - Active processes' assert page.has_no_text?('Save profile'), 'Found text - Save profile' end elsif invited @@ -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?('Virtual machines'), 'No link - Virtual machines' + assert page.has_link?('Repositories'), 'No link - Repositories' + assert page.has_link?('Current token'), 'No link - Current token' + assert page.has_link?('SSH keys'), 'No link - SSH Keys' if profile_config assert page.has_link?('Manage profile'), 'No link - Manage profile' @@ -116,7 +119,7 @@ class UserProfileTest < ActionDispatch::IntegrationTest end # profile saved and in home page now - assert page.has_text?('Active pipelines'), 'No text - Active pipelines' + assert page.has_text?('Active processes'), 'No text - Active processes' end [ @@ -134,6 +137,8 @@ class UserProfileTest < ActionDispatch::IntegrationTest test "visit home page when profile is configured for user #{token}" do # Our test config enabled profile by default. So, no need to update config + Rails.configuration.enable_getting_started_popup = true + if !token visit ('/') else @@ -145,6 +150,7 @@ class UserProfileTest < ActionDispatch::IntegrationTest test "visit home page when profile not configured for user #{token}" do Rails.configuration.user_profile_form_fields = false + Rails.configuration.enable_getting_started_popup = true if !token visit ('/')