From 62823442d369705290807fa2a5191a1a67d6ee09 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 26 Nov 2016 08:16:15 +0000 Subject: Replaces project jump select with custom dropdown (#23310). git-svn-id: http://svn.redmine.org/redmine/trunk@15994 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/projects_controller_test.rb | 6 ++++++ test/functional/welcome_controller_test.rb | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index fc261d277..01c68308f 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -52,6 +52,12 @@ class ProjectsControllerTest < Redmine::ControllerTest assert_select 'feed>entry', :count => Project.visible(User.current).count end + def test_index_js + xhr :get, :index, :format => 'js', :q => 'coo' + assert_response :success + assert_equal 'text/javascript', response.content_type + end + test "#index by non-admin user with view_time_entries permission should show overall spent time link" do @request.session[:user_id] = 3 get :index diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb index 004fb674a..11d23d632 100644 --- a/test/functional/welcome_controller_test.rb +++ b/test/functional/welcome_controller_test.rb @@ -138,8 +138,8 @@ class WelcomeControllerTest < Redmine::ControllerTest @request.session[:user_id] = 2 get :index - assert_select "#header select" do - assert_select "option", :text => 'Foo & Bar' + assert_select "#header #project-jump" do + assert_select "a", :text => 'Foo & Bar' end end -- cgit v1.2.3