From 9f46488805e86b1bc341ea1620b866016c2ce5ed Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 20 May 2020 14:34:42 +0000 Subject: Add latest changes from gitlab-org/gitlab@13-0-stable-ee --- spec/features/boards/boards_spec.rb | 54 +++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'spec/features/boards/boards_spec.rb') diff --git a/spec/features/boards/boards_spec.rb b/spec/features/boards/boards_spec.rb index 0ac8e7c5fc8..e82b1be4310 100644 --- a/spec/features/boards/boards_spec.rb +++ b/spec/features/boards/boards_spec.rb @@ -137,6 +137,49 @@ describe 'Issue Boards', :js do expect(find('.board:nth-child(4)')).to have_selector('.board-card', count: 0) end + context 'search list negation queries' do + context 'with the NOT queries feature flag disabled' do + before do + stub_feature_flags(not_issuable_queries: false) + visit project_board_path(project, board) + end + + it 'does not have the != option' do + find('.filtered-search').set('label:') + + wait_for_requests + within('#js-dropdown-operator') do + tokens = all(:css, 'li.filter-dropdown-item') + expect(tokens.count).to eq(1) + button = tokens[0].find('button') + expect(button).to have_content('=') + expect(button).not_to have_content('!=') + end + end + end + + context 'with the NOT queries feature flag enabled' do + before do + stub_feature_flags(not_issuable_queries: true) + visit project_board_path(project, board) + end + + it 'does not have the != option' do + find('.filtered-search').set('label:') + + wait_for_requests + within('#js-dropdown-operator') do + tokens = all(:css, 'li.filter-dropdown-item') + expect(tokens.count).to eq(2) + button = tokens[0].find('button') + expect(button).to have_content('=') + button = tokens[1].find('button') + expect(button).to have_content('!=') + end + end + end + end + it 'allows user to delete board' do page.within(find('.board:nth-child(2)')) do accept_confirm { find('.board-delete').click } @@ -549,6 +592,17 @@ describe 'Issue Boards', :js do end end + context 'issue board focus mode' do + before do + visit project_board_path(project, board) + wait_for_requests + end + + it 'shows the button' do + expect(page).to have_link('Toggle focus mode') + end + end + context 'keyboard shortcuts' do before do visit project_board_path(project, board) -- cgit v1.2.1