Skip to content

Commit 86c2e3d

Browse files
committed
Only consider visible inputs for fill_in etc
In responsive layouts there may be distinct inputs for mobile and desktop layouts that share the same label. If only one of them is visible, no 'strict mode violation' error should be raised.
1 parent f39dc06 commit 86c2e3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/phoenix_test/playwright.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ defmodule PhoenixTest.Playwright do
873873
css -> css |> Selector.css() |> Selector.and(Selector.label(label, opts))
874874
end
875875
)
876+
|> Selector.concat("visible=true")
876877
|> Selector.build()
877878

878879
selector

0 commit comments

Comments
 (0)