Skip to content

Commit

Permalink
add test for open dropdown when input field is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmarcon committed Dec 11, 2023
1 parent fbf01f4 commit c75c13c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/live_select_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,12 @@ defmodule LiveSelectTest do
assert dropdown_visible(live)
end

test "click on text input shows it", %{live: live} do
render_click(element(live, selectors()[:text_input]))

assert dropdown_visible(live)
end

test "pressing a key shows it", %{live: live} do
keydown(live, "ArrowDown")

Expand Down

0 comments on commit c75c13c

Please sign in to comment.