diff options
author | Simon Knox <psimyn@gmail.com> | 2018-01-18 09:26:49 +1100 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2018-01-18 09:26:49 +1100 |
commit | 7a9c9416a23945ff3e2db80d7b05003b54230c0a (patch) | |
tree | 8da0839fd521ecee6805a3efec90c0b8466ce9df /spec | |
parent | e66a25a2c8ca582641e375bc789828d942868d91 (diff) | |
download | gitlab-ce-7a9c9416a23945ff3e2db80d7b05003b54230c0a.tar.gz |
feature spec for #34252
https://gitlab.com/gitlab-org/gitlab-ce/issues/34252
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/boards/boards_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/features/boards/boards_spec.rb b/spec/features/boards/boards_spec.rb index 3876d1c76d7..3d13f806b11 100644 --- a/spec/features/boards/boards_spec.rb +++ b/spec/features/boards/boards_spec.rb @@ -69,6 +69,7 @@ describe 'Issue Boards', :js do let!(:backlog) { create(:label, project: project, name: 'Backlog') } let!(:closed) { create(:label, project: project, name: 'Closed') } let!(:accepting) { create(:label, project: project, name: 'Accepting Merge Requests') } + let!(:a_plus) { create(:label, project: project, name: 'A+') } let!(:list1) { create(:list, board: board, label: planning, position: 0) } let!(:list2) { create(:list, board: board, label: development, position: 1) } @@ -83,6 +84,7 @@ describe 'Issue Boards', :js do let!(:issue7) { create(:labeled_issue, project: project, title: 'ggg', description: '777', labels: [development], relative_position: 2) } let!(:issue8) { create(:closed_issue, project: project, title: 'hhh', description: '888') } let!(:issue9) { create(:labeled_issue, project: project, title: 'iii', description: '999', labels: [planning, testing, bug, accepting], relative_position: 1) } + let!(:issue10) { create(:labeled_issue, project: project, title: 'issue +', description: 'A+ great issue', labels: [a_plus]) } before do visit project_board_path(project, board) @@ -400,6 +402,15 @@ describe 'Issue Boards', :js do wait_for_empty_boards((3..4)) end + it 'filters by label with encoded character' do + set_filter("label", a_plus.title) + click_filter_link(a_plus.title) + submit_filter + + wait_for_board_cards(1, 1) + wait_for_empty_boards((2..4)) + end + it 'filters by label with space after reload' do set_filter("label", "\"#{accepting.title}") click_filter_link(accepting.title) |