Commit 5e0005d7 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix flaky spec due to JS not initialized

We add a finder here so that we can be sure that
the search bar JS has been initialized before we
use the keyboard shortcut
parent 47472ce5
......@@ -28,6 +28,7 @@ describe 'User uses header search field', :js do
context 'when using the keyboard shortcut' do
before do
find('#search.js-autocomplete-disabled')
find('body').native.send_keys('s')
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment