mediawiki-extensions-Multim.../tests/browser/features/mmv_performance.feature
Gilles Dubuc 353ce92d79 Set correct license link location in E2E test
* Remove login since it's not longer needed
* Point to a new smaller test page instead of Lightbox_demo
 which should make the tests run much faster
* Tweak selenium scroll workaround which seems to be speed-dependant

Change-Id: I247ae6a5044ecc93b6f3839f1b9ed955b488b5a7
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/475
2014-04-24 15:50:06 +02:00

41 lines
1.9 KiB
Gherkin

@mediawiki.org @firefox
Feature: Multimedia Viewer performance
Background:
Given 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
And I visit the Commons page
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
When I close MMV
When 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 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
When I close MMV
When 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 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
When I close MMV
When 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