Merge "User custom user agent to identify production test runs"

This commit is contained in:
jenkins-bot 2014-04-24 23:14:16 +00:00 committed by Gerrit Code Review
commit 2ed46d3c06
2 changed files with 6 additions and 1 deletions

View file

@ -2,7 +2,8 @@
Feature: Multimedia Viewer performance Feature: Multimedia Viewer performance
Background: Background:
Given I am at a wiki article with at least two embedded pictures Given I am using a custom user agent
And I am at a wiki article with at least two embedded pictures
Scenario: Commons with warm cache Scenario: Commons with warm cache
Given I visit an unrelated Commons page to warm up the browser cache Given I visit an unrelated Commons page to warm up the browser cache

View file

@ -19,6 +19,10 @@ Given /^I have a large browser window$/ do
@browser.window.resize_to 1920, 1080 @browser.window.resize_to 1920, 1080
end end
Given /^I am using a custom user agent$/ do
@browser = browser(test_name(@scenario), {user_agent: ENV["BROWSER_USERAGENT"]})
end
Then /^the File: page image is loaded$/ do Then /^the File: page image is loaded$/ do
on(CommonsPage) do |page| on(CommonsPage) do |page|
wait_for_image_load page, ".fullImageLink img" wait_for_image_load page, ".fullImageLink img"