2016-02-25 13:44:41 +00:00
|
|
|
@en.wikipedia.beta.wmflabs.org @custom-browser @mediawiki.org @firefox @internet_explorer_9 @internet_explorer_10 @internet_explorer_11 @test2.wikipedia.org
|
2014-04-01 08:46:48 +00:00
|
|
|
Feature: Multimedia Viewer performance
|
|
|
|
|
|
|
|
Background:
|
2014-04-24 14:52:13 +00:00
|
|
|
Given I am using a custom user agent
|
2014-09-17 21:48:44 +00:00
|
|
|
And I am at a wiki article with at least two embedded pictures
|
2014-04-01 08:46:48 +00:00
|
|
|
|
|
|
|
Scenario: Commons with warm cache
|
|
|
|
Given I visit an unrelated Commons page to warm up the browser cache
|
2014-09-17 21:48:44 +00:00
|
|
|
And I visit the Commons page
|
2014-04-01 08:46:48 +00:00
|
|
|
Then the File: page image is loaded
|
|
|
|
|
|
|
|
Scenario: MMV with warm cache and small browser window
|
|
|
|
Given I have a small browser window
|
|
|
|
When I click on an unrelated image in the article to warm up the browser cache
|
2014-09-17 21:48:44 +00:00
|
|
|
And I close MMV
|
|
|
|
And I click on the first image in the article
|
2014-04-01 08:46:48 +00:00
|
|
|
Then the MMV image is loaded in 125 percent of the time with a warm cache and an average browser window
|
|
|
|
|
|
|
|
Scenario: MMV with cold cache and average browser window
|
|
|
|
Given I have an average browser window
|
|
|
|
When I click on the first image in the article
|
|
|
|
Then the MMV image is loaded in 210 percent of the time with a cold cache and an average browser window
|
|
|
|
|
|
|
|
Scenario: MMV with warm cache and average browser window
|
|
|
|
Given I have an average browser window
|
|
|
|
When I click on an unrelated image in the article to warm up the browser cache
|
2014-09-17 21:48:44 +00:00
|
|
|
And I close MMV
|
|
|
|
And I click on the first image in the article
|
2014-04-01 08:46:48 +00:00
|
|
|
Then the MMV image is loaded in 125 percent of the time with a warm cache and an average browser window
|
|
|
|
|
|
|
|
Scenario: MMV with cold cache and large browser window
|
|
|
|
Given I have a large browser window
|
|
|
|
When I click on the first image in the article
|
|
|
|
Then the MMV image is loaded in 240 percent of the time with a cold cache and a large browser window
|
|
|
|
|
|
|
|
Scenario: MMV with warm cache and large browser window
|
|
|
|
Given I have a large browser window
|
|
|
|
When I click on an unrelated image in the article to warm up the browser cache
|
2014-09-17 21:48:44 +00:00
|
|
|
And I close MMV
|
|
|
|
And I click on the first image in the article
|
|
|
|
Then the MMV image is loaded in 125 percent of the time with a warm cache and a large browser window
|