Fixed search not working in issue boards modal
This commit is contained in:
parent
4a81867df1
commit
8e4a23927e
|
|
@ -117,7 +117,7 @@ import FilteredSearchContainer from './container';
|
||||||
const { isLastVisualTokenValid } =
|
const { isLastVisualTokenValid } =
|
||||||
gl.FilteredSearchVisualTokens.getLastVisualTokenBeforeInput();
|
gl.FilteredSearchVisualTokens.getLastVisualTokenBeforeInput();
|
||||||
|
|
||||||
const input = document.querySelector('.filtered-search');
|
const input = FilteredSearchContainer.container.querySelector('.filtered-search');
|
||||||
const inputValue = input && input.value;
|
const inputValue = input && input.value;
|
||||||
|
|
||||||
if (isLastVisualTokenValid) {
|
if (isLastVisualTokenValid) {
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,8 @@ describe 'Issue Boards add issue modal', :feature, :js do
|
||||||
find('.form-control').native.send_keys(issue.title)
|
find('.form-control').native.send_keys(issue.title)
|
||||||
find('.form-control').native.send_keys(:enter)
|
find('.form-control').native.send_keys(:enter)
|
||||||
|
|
||||||
|
wait_for_vue_resource
|
||||||
|
|
||||||
expect(page).to have_selector('.card', count: 1)
|
expect(page).to have_selector('.card', count: 1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -118,6 +120,8 @@ describe 'Issue Boards add issue modal', :feature, :js do
|
||||||
find('.form-control').native.send_keys('testing search')
|
find('.form-control').native.send_keys('testing search')
|
||||||
find('.form-control').native.send_keys(:enter)
|
find('.form-control').native.send_keys(:enter)
|
||||||
|
|
||||||
|
wait_for_vue_resource
|
||||||
|
|
||||||
expect(page).not_to have_selector('.card')
|
expect(page).not_to have_selector('.card')
|
||||||
expect(page).not_to have_content("You haven't added any issues to your project yet")
|
expect(page).not_to have_content("You haven't added any issues to your project yet")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue