Skip to content
Permalink
Browse files

Add a system test for search

  • Loading branch information...
mrhead committed Apr 11, 2019
1 parent 02f4cb0 commit e2fe2bee4fb0e90d4208acacc031170f18f96931
Showing with 17 additions and 0 deletions.
  1. +17 −0 test/system/searches_test.rb
@@ -0,0 +1,17 @@
require "application_system_test_case"

class SearchesTest < ApplicationSystemTestCase
test "search" do
person = people(:john_doe)

visit root_path

fill_in placeholder: "Search people by name", with: person.name

within ".search__results" do
click_link person.name
end

assert_selector "p", text: person.name
end
end

0 comments on commit e2fe2be

Please sign in to comment.
You can’t perform that action at this time.