Skip to content

Commit

Permalink
adjust screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkkwang committed Jan 3, 2024
1 parent 9ec6d40 commit 8e4c93f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
options = Selenium::WebDriver::Options.chrome(args: ["disable-gpu",
"no-sandbox",
"whitelisted-ips",
"window-size=1400,1400"])
"window-size=1920,1080"])

Capybara.register_driver :chrome do |app|
d = Capybara::Selenium::Driver.new(app,
Expand All @@ -83,7 +83,9 @@
Capybara.server_port = 3001
Capybara.app_host = "http://#{ENV['WEB_HOST']}:#{Capybara.server_port}"
else
options = Selenium::WebDriver::Options.chrome(args: ["headless", "disable-gpu"])
options = Selenium::WebDriver::Options.chrome(args: ["headless",
"disable-gpu",
"window-size=1920,1080"])

Capybara.register_driver :chrome do |app|
Capybara::Selenium::Driver.new(
Expand Down

0 comments on commit 8e4c93f

Please sign in to comment.