In the MobileFrontend repo there is a test no_"javascript_site.feature"
That test uses this step in common_steps.rb:
Given /^I am using user agent "(.+)"$/ do |user_agent|
@user_agent = user_agent @browser = browser(environment, test_name(@scenario), user_agent) @browser.window.resize_to(480, 800) $session_id = @browser.driver.instance_variable_get(:@bridge).session_id
end
None of this works since browser creation has moved to shared code.
We should make it possible to have Firefox honor spoofing a user agent string. (Note: no browser other than Firefox will spoof a user agent.)
Version: unspecified
Severity: normal