Skip to content

Commit

Permalink
Merge pull request #1165 from DFE-Digital/2205-bug-find-a-lost-trn-sm…
Browse files Browse the repository at this point in the history
…oke-test-failures

[2205] Use no-sandbox to stop smoke tests timeouts
  • Loading branch information
saliceti authored Jan 17, 2025
2 parents bd3880c + 82f1c25 commit 26c9807
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ PLATFORMS
arm64-darwin-21
arm64-darwin-23
x86_64-darwin-21
x86_64-darwin-24
x86_64-linux

DEPENDENCIES
Expand Down
4 changes: 4 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@
require "view_component/test_helpers"

Capybara.register_driver(:cuprite) do |app|
browser_options = {}
browser_options['no-sandbox'] = nil if ENV['CI']

Capybara::Cuprite::Driver.new(
app,
timeout: 10,
process_timeout: 30,
window_size: [1200, 800],
browser_options:
)
end
Capybara.default_driver = :cuprite
Expand Down

0 comments on commit 26c9807

Please sign in to comment.