Sha256: 792987db31d6e911967a47e15f9191697aa7680b49f559ccbf4a55122dcf0fcb
Contents?: true
Size: 1009 Bytes
Versions: 2
Compression:
Stored size: 1009 Bytes
Contents
require 'test_helper' module Workarea decorate Storefront::ContentSearchAutocompleteSystemTest, with: :one_theme do def test_content_appears_in_autocomplete create_page(name: 'Content Test One') create_page(name: 'Content Test Two') create_page(name: 'Content Test Three') create_product(name: 'Test One') create_product(name: 'Test Two') create_search_by_week(query_string: 'test one', searches: 5, total_results: 5) create_search_by_week(query_string: 'test two', searches: 10, total_results: 5) visit storefront.root_path find('[data-header-search-ui] button').click fill_in :q, with: 'te' within '#search_autocomplete' do assert_text( t( 'workarea.storefront.search_autocomplete.content_heading', term: 'test two' ) ) assert_text('Content Test One') assert_text('Content Test Two') assert_text('Content Test Three') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems