diff options
author | Phil Hughes <me@iamphill.com> | 2017-03-21 14:57:21 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-03-21 14:57:21 +0000 |
commit | 536efa472a95d96e936fe5f328f2d686be532edb (patch) | |
tree | 65da98167addf3f06d129436939d407ef1e0a4bd | |
parent | ee8f09dafbcf7f3fc30a492f220d5d525cea283b (diff) | |
download | gitlab-ce-536efa472a95d96e936fe5f328f2d686be532edb.tar.gz |
Added test for reseting the filtered search state in the modal
-rw-r--r-- | spec/features/boards/add_issues_modal_spec.rb | 14 |
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') |