Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/boards/add_issues_modal_spec.rb')
-rw-r--r--spec/features/boards/add_issues_modal_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/boards/add_issues_modal_spec.rb b/spec/features/boards/add_issues_modal_spec.rb
index d17a418b8c3..1c0f97d8a1c 100644
--- a/spec/features/boards/add_issues_modal_spec.rb
+++ b/spec/features/boards/add_issues_modal_spec.rb
@@ -23,6 +23,20 @@ describe 'Issue Boards add issue modal', :feature, :js do
wait_for_vue_resource
end
+ it 'resets filtered search state' do
+ visit namespace_project_board_path(project.namespace, project, board, search: 'testing')
+
+ wait_for_vue_resource
+
+ click_button('Add issues')
+
+ page.within('.add-issues-modal') do
+ expect(find('.form-control').value).to eq('')
+ expect(page).to have_selector('.clear-search', visible: false)
+ expect(find('.form-control')[:placeholder]).to eq('Search or filter results...')
+ end
+ end
+
context 'modal interaction' do
it 'opens modal' do
click_button('Add issues')