Skip to content

Commit 0e2818c

Browse files
arzezakmauro-oto
andcommitted
Do not override :wait for non-Playwright drivers
Do not override `:wait` when the current driver is not Playwright. This was causing our suite to fail just by requiring `capybara-playwright-driver`. Co-authored-by: mauro-oto <[email protected]>
1 parent f3e81a5 commit 0e2818c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/capybara/playwright/node.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ def perform_click_action(keys, **options)
88

99
# Playwright has own auto-waiting feature.
1010
# So disable Capybara's retry logic.
11-
options[:wait] = 0
11+
if driver.is_a?(Capybara::Playwright::Driver)
12+
options[:wait] = 0
13+
end
14+
1215
super
1316
end
1417
end

0 commit comments

Comments
 (0)