X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6a983720b3d1ee8e613bf3902e69fd14f505b995..4ad6191d53207a8b2d4c0c8a30b18119daaa5fbc:/apps/workbench/test/integration/report_issue_test.rb diff --git a/apps/workbench/test/integration/report_issue_test.rb b/apps/workbench/test/integration/report_issue_test.rb index 4a15851636..98ce8aad14 100644 --- a/apps/workbench/test/integration/report_issue_test.rb +++ b/apps/workbench/test/integration/report_issue_test.rb @@ -1,13 +1,17 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'integration_helper' class ReportIssueTest < ActionDispatch::IntegrationTest setup do need_javascript - @user_profile_form_fields = Rails.configuration.user_profile_form_fields + @user_profile_form_fields = Rails.configuration.Workbench.UserProfileFormFields end teardown do - Rails.configuration.user_profile_form_fields = @user_profile_form_fields + Rails.configuration.Workbench.UserProfileFormFields = @user_profile_form_fields end # test version info and report issue from help menu @@ -33,7 +37,7 @@ class ReportIssueTest < ActionDispatch::IntegrationTest assert page.has_button?('Close'), 'No button - Close' assert page.has_no_button?('Send problem report'), 'Found button - Send problem report' history_links = all('a').select do |a| - a[:href] =~ %r!^https://arvados.org/projects/arvados/repository/changes\?rev=[0-9a-f]+$! + a[:href] =~ %r!^https://dev.arvados.org/projects/arvados/repository/changes\?rev=[0-9a-f]+$! end assert_operator(2, :<=, history_links.count, "Should have found two links to revision history " + @@ -84,7 +88,8 @@ class ReportIssueTest < ActionDispatch::IntegrationTest ['active', api_fixture('users')['active']], ['admin', api_fixture('users')['admin']], ['active_no_prefs', api_fixture('users')['active_no_prefs']], - ['active_no_prefs_profile', api_fixture('users')['active_no_prefs_profile']], + ['active_no_prefs_profile_no_getting_started_shown', + api_fixture('users')['active_no_prefs_profile_no_getting_started_shown']], ].each do |token, user| test "check version info and report issue for user #{token}" do