We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5685a64 commit 694efa0Copy full SHA for 694efa0
lib/capybara/cuprite/page.rb
@@ -144,7 +144,11 @@ def prepare_page
144
super
145
146
width, height = @options.window_size
147
- resize(width: width, height: height, mobile: @options.mobile)
+ if @options.mobile
148
+ resize(width: 0, height: 0, mobile: @options.mobile)
149
+ else
150
+ resize(width: width, height: height, mobile: @options.mobile)
151
+ end
152
153
if @options.url_blacklist.any?
154
network.blacklist = @options.url_blacklist
spec/spec_helper.rb
@@ -40,6 +40,7 @@
40
41
module TestSessions
42
Cuprite = Capybara::Session.new(:cuprite, TestApp)
43
+ CupriteMobile = Capybara::Session.new(:cuprite_mobile, TestApp)
44
end
45
46
RSpec.configure do |config|
0 commit comments