summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-09-14 00:33:05 +0000
committerGo MAEDA <maeda@farend.jp>2019-09-14 00:33:05 +0000
commit0d4fbfe3405494a8c6e7ef2ec91dacc2f145a4a3 (patch)
treeed256bb1f9793235fe125a1a0ea416f2565ee64e /test
parent81d6e24a8fca881aa9d2e6adbe31c9738b37a527 (diff)
downloadredmine-0d4fbfe3405494a8c6e7ef2ec91dacc2f145a4a3.tar.gz
redmine-0d4fbfe3405494a8c6e7ef2ec91dacc2f145a4a3.zip
Add clear query icon next to selected query in sidebar (#31640).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18468 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/issues_controller_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 2945e8a0a..b9ef3bb27 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -292,6 +292,17 @@ class IssuesControllerTest < Redmine::ControllerTest
:query_id => 5
}
assert_response :success
+
+ assert_select '#sidebar .queries' do
+ # assert only query is selected in sidebar
+ assert_select 'a.query.selected', 1
+ # assert link properties
+ assert_select 'a.query.selected[href=?]', '/projects/ecookbook/issues?query_id=5', :text => "Open issues by priority and tracker"
+ # assert only one clear link exists
+ assert_select 'a.icon-clear-query', 1
+ # assert clear link properties
+ assert_select 'a.icon-clear-query[title=?][href=?]', 'Clear', '/projects/ecookbook/issues?set_filter=1&sort=', 1
+ end
end
def test_index_with_query_grouped_by_tracker