diff --git a/.travis.yml b/.travis.yml index eb1a0aff41..55dacb9be4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,7 @@ install: script: - docker-compose exec web bash -c "wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" - docker-compose exec web bash -c "dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install" - - docker-compose exec web bash -c "wget https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip" # https://sites.google.com/a/chromium.org/chromedriver/ + - docker-compose exec web bash -c "wget https://chromedriver.storage.googleapis.com/74.0.3729.6/chromedriver_linux64.zip" # https://sites.google.com/a/chromium.org/chromedriver/ - docker-compose exec web bash -c "unzip chromedriver_linux64.zip" - docker-compose exec web bash -c "mv chromedriver /usr/local/bin/chromedriver" - docker-compose exec web bash -c "chmod +x /usr/local/bin/chromedriver" diff --git a/test/system/search_test.rb b/test/system/search_test.rb index 8f3237c8ee..762b9bfc2c 100644 --- a/test/system/search_test.rb +++ b/test/system/search_test.rb @@ -10,4 +10,15 @@ class SearchTest < ApplicationSystemTestCase assert_selector('h2', text: 'Results for Canon') end + + test 'searching using navbar autocomplete' do + visit '/' + + fill_in("searchform_input", with: "Canon") + + assert_selector ".typeahead li", text: "Canon A1200 IR conversion at PLOTS Barnraising at LUMCON", wait: 10 + + assert page.evaluate_script("$('.typeahead.dropdown-menu').is(':visible')") + assert_equal 4, page.evaluate_script("$('.typeahead.dropdown-menu').find('li').length") + end end