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 d010e99 commit 8567d60Copy full SHA for 8567d60
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
@@ -39,6 +39,7 @@
39
40
module TestSessions
41
Cuprite = Capybara::Session.new(:cuprite, TestApp)
42
+ CupriteMobile = Capybara::Session.new(:cuprite_mobile, TestApp)
43
end
44
45
RSpec.configure do |config|
0 commit comments