mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
28 lines
1.2 KiB
Gherkin
28 lines
1.2 KiB
Gherkin
|
@en.wikipedia.beta.wmflabs.org @firefox @internet_explorer_10 @login @safari @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
|
||
|
And I click Use this image
|
||
|
|
||
|
When I fill in the text area for caption with "caption"
|
||
|
And I fill in the test area for alternative text with "alt text"
|
||
|
And I click "Insert"
|
||
|
And I click Save page
|
||
|
And I click Review your changes
|
||
|
Then diff view should show proper caption and alt text
|
||
|
|
||
|
|
||
|
|
||
|
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]] |
|