Skip to content

Commit

Permalink
Fixing auto_complete test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Sep 15, 2022
1 parent d67e4e8 commit 898fbed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/system/beta/auto_complete_component_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class IntegrationAutoCompleteTest < ApplicationSystemTestCase
def test_renders_component
visit_preview(:default)

assert_selector("auto-complete[for=\"test-id\"][src=\"/auto_complete\"]") do
assert_selector("auto-complete[for=\"list-id\"][src=\"/auto_complete\"]") do
assert_selector("input.FormControl-input")
assert_selector("ul[id=\"test-id\"].ActionList", visible: false)
assert_selector("ul[id=\"list-id\"].ActionList", visible: false)
end
refute_selector(".ActionList-item")
end
Expand All @@ -21,7 +21,7 @@ def test_search_items
fill_in "input-id", with: "a"

# results are now visible
assert_selector("ul[id=\"test-id\"].ActionList", visible: true)
assert_selector("ul[id=\"list-id\"].ActionList", visible: true)
assert_selector(".ActionList-item")
end

Expand Down

0 comments on commit 898fbed

Please sign in to comment.