mediawiki-extensions-Visual.../modules/ve-mw/tests/browser/features/media_interface.feature
Željko Filipin f850ddf73b Rename "test" folder to "tests"
All other repositories have tests in “tests” folder. For more
information see:

http://lists.wikimedia.org/pipermail/qa/2014-July/001663.html
http://lists.wikimedia.org/pipermail/qa/2014-July/001667.html
http://lists.wikimedia.org/pipermail/qa/2014-July/001672.html

Change-Id: Ib1e4fa4b7203bd8217615db1ceac23a329c081f1
2014-07-15 18:00:32 -07:00

23 lines
1.1 KiB
Gherkin

@chrome @en.wikipedia.beta.wmflabs.org @firefox @login @test2.wikipedia.org
Feature: VisualEditor Media Interface
Background:
Given I go to the "Media Interface VisualEditor Test" page with content "Media Interface VisualEditor Test"
And I click in the editable part
Scenario Outline: VisualEditor insert new media
Given I click Media
And I enter <search_term> into media Search box
And I select an Image
When I click Apply changes
And I click Save page
And I click Links Review your changes
Then <expected_markup_text> should appear in the media diff view
And I can click the X on the media save box
Examples:
| search_term | expected_markup_text |
| San Francisco | [[File:California county map (San Francisco County highlighted).svg\|thumb\|150x150px]] |
| Flash video | [[File:Flash video file icon.png\|thumb\|32x32px]] |
| cunfrunti | [[File:Cunfrunti.mpg.OGG\|thumb\|183x183px]] |