Skip to content

Commit eece325

Browse files
committed
Add capybara-lockstep
1 parent c21ec93 commit eece325

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,7 @@ end
7777
group :test do
7878
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
7979
gem "capybara"
80+
# Synchronize Capybara commands with application JavaScript and AJAX requests
81+
gem "capybara-lockstep"
8082
gem "selenium-webdriver"
8183
end

Gemfile.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ GEM
9696
rack-test (>= 0.6.3)
9797
regexp_parser (>= 1.5, < 3.0)
9898
xpath (~> 3.2)
99+
capybara-lockstep (2.2.3)
100+
activesupport (>= 4.2)
101+
capybara (>= 3.0)
102+
ruby2_keywords
103+
selenium-webdriver (>= 4.0)
99104
childprocess (5.1.0)
100105
logger (~> 1.5)
101106
concurrent-ruby (1.3.5)
@@ -318,6 +323,7 @@ GEM
318323
rubocop-performance (>= 1.24)
319324
rubocop-rails (>= 2.30)
320325
ruby-progressbar (1.13.0)
326+
ruby2_keywords (0.0.5)
321327
rubyzip (3.1.0)
322328
securerandom (0.4.1)
323329
selenium-webdriver (4.35.0)
@@ -411,6 +417,7 @@ DEPENDENCIES
411417
bootsnap
412418
brakeman
413419
capybara
420+
capybara-lockstep
414421
debug
415422
factory_bot_rails
416423
inertia_rails (~> 3.10)

app/views/layouts/application.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<meta name="apple-mobile-web-app-capable" content="yes">
77
<meta name="mobile-web-app-capable" content="yes">
8+
<%= capybara_lockstep if defined?(Capybara::Lockstep) %>
89
<%= csrf_meta_tags %>
910
<%= csp_meta_tag %>
1011

0 commit comments

Comments
 (0)