File tree Expand file tree Collapse file tree 4 files changed +20
-3
lines changed
controllers/maintenance_tasks
views/layouts/maintenance_tasks Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ source "https://rubygems.org"
55gemspec
66
77gem "better_html"
8- gem "capybara"
98gem "debug"
10- gem "mocha"
119gem "puma"
1210if !@rails_gem_requirement
1311 gem "rails" , ">= 7.1"
1917end
2018gem "rubocop"
2119gem "rubocop-shopify"
22- gem "selenium-webdriver"
2320gem "sprockets-rails"
2421if @sqlite3_requirement
2522 # causes Dependabot to ignore the next line and update the next gem "sqlite3"
2926 gem "sqlite3"
3027end
3128gem "yard"
29+
30+ group :test do
31+ gem "capybara"
32+ gem "capybara-lockstep"
33+ gem "mocha"
34+ gem "selenium-webdriver"
35+ end
Original file line number Diff line number Diff line change 107107 rack-test (>= 0.6.3 )
108108 regexp_parser (>= 1.5 , < 3.0 )
109109 xpath (~> 3.2 )
110+ capybara-lockstep (2.2.3 )
111+ activesupport (>= 4.2 )
112+ capybara (>= 3.0 )
113+ ruby2_keywords
114+ selenium-webdriver (>= 4.0 )
110115 concurrent-ruby (1.3.5 )
111116 connection_pool (2.5.3 )
112117 crass (1.0.6 )
@@ -316,6 +321,7 @@ PLATFORMS
316321DEPENDENCIES
317322 better_html
318323 capybara
324+ capybara-lockstep
319325 debug
320326 maintenance_tasks !
321327 mocha
Original file line number Diff line number Diff line change @@ -13,9 +13,15 @@ class ApplicationController < MaintenanceTasks.parent_controller.constantize
1313 # <style> tag in app/views/layouts/maintenance_tasks/application.html.erb
1414 "'sha256-WHHDQLdkleXnAN5zs0GDXC5ls41CHUaVsJtVpaNx+EM='" ,
1515 )
16+ capybara_lockstep_scripts = [
17+ "'sha256-1AoN3ZtJC5OvqkMgrYvhZjp4kI8QjJjO7TAyKYiDw+U='" ,
18+ "'sha256-QVSzZi6ZsX/cu4h+hIs1iVivG1BxUmJggiEsGDIXBG0='" , # with debug on
19+ ] if defined? ( Capybara ::Lockstep )
1620 policy . script_src_elem (
1721 # <script> tag in app/views/layouts/maintenance_tasks/application.html.erb
1822 "'sha256-NiHKryHWudRC2IteTqmY9v1VkaDUA/5jhgXkMTkgo2w='" ,
23+ # <script> tag for capybara-lockstep
24+ *capybara_lockstep_scripts ,
1925 )
2026
2127 policy . require_trusted_types_for # disable because we use new DOMParser().parseFromString
Original file line number Diff line number Diff line change 33 < head >
44 < meta charset ="utf-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6+ <%= capybara_lockstep if defined? ( Capybara ::Lockstep ) %>
67
78 < title >
89 <% if content_for? ( :page_title ) %>
You can’t perform that action at this time.
0 commit comments