Skip to content

Commit ab04d46

Browse files
committed
tmp
1 parent 8838c15 commit ab04d46

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

lib/ferrum/browser/process.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,8 @@ def parse_ws_url(read_io, timeout)
165165
end
166166
end
167167

168-
puts "="*100
169168
puts output
170169
puts ws_url
171-
puts "-"*100
172170

173171
return if ws_url
174172

spec/spec_helper.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
end
3636

3737
config.before(:all) do
38-
base_url = Ferrum::Server.server.base_url
39-
options = { base_url: base_url }
40-
options.merge!(headless: false) if ENV["HEADLESS"] == "false"
41-
options.merge!(slowmo: ENV["SLOWMO"].to_f) if ENV["SLOWMO"].to_f > 0
38+
options = default_options
4239

4340
if ENV["CI"]
4441
ferrum_logger = StringIO.new

spec/support/global_helpers.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
RSpec.shared_context "Global helpers" do
44
attr_reader :browser
55

6+
def default_options
7+
base_url = Ferrum::Server.server.base_url
8+
options = { base_url: base_url }
9+
options.merge!(headless: false) if ENV["HEADLESS"] == "false"
10+
options.merge!(slowmo: ENV["SLOWMO"].to_f) if ENV["SLOWMO"].to_f > 0
11+
return options unless ENV["CI"]
12+
13+
options.merge!(browser_options: { "no-sandbox" => nil })
14+
end
15+
616
def server
717
Ferrum::Server.server
818
end

0 commit comments

Comments
 (0)