mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-29 05:07:36 +00:00
Merge "User custom user agent to identify production test runs"
This commit is contained in:
commit
2ed46d3c06
|
@ -2,7 +2,8 @@
|
|||
Feature: Multimedia Viewer performance
|
||||
|
||||
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
|
||||
Given I visit an unrelated Commons page to warm up the browser cache
|
||||
|
|
|
@ -19,6 +19,10 @@ Given /^I have a large browser window$/ do
|
|||
@browser.window.resize_to 1920, 1080
|
||||
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
|
||||
on(CommonsPage) do |page|
|
||||
wait_for_image_load page, ".fullImageLink img"
|
||||
|
|
Loading…
Reference in a new issue