mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
d82a0eabd8
For the case of a bare wiki, make a page Template:Seleniumtest so that something will show up when typing into the lookahead box in the Template inspector Note that it may take a small amount of time for the new Template to be available to VE. If this test fails on the first run in a bare wiki, it should pass on the second run ,once the Template is indexed by the search back end. Change-Id: I70d1ff39c2fd01bb0aeee89d3c090d372b427f5b
35 lines
1.3 KiB
Gherkin
35 lines
1.3 KiB
Gherkin
@chrome @en.wikipedia.beta.wmflabs.org @firefox @login @test2.wikipedia.org
|
|
Feature: VisualEditor Transclusion
|
|
|
|
Background:
|
|
Given I go to the "Template:Seleniumtest" page with content "Template for selenium testing"
|
|
And I go to the "Transclusion VisualEditor Test" page with content "Transclusion VisualEditor Test"
|
|
And I click in the editable part
|
|
And I click Transclusion
|
|
And I can see the Transclusion User Interface
|
|
|
|
Scenario: Add template
|
|
When I enter S into transclusion Content box
|
|
Then I see a list of template suggestions
|
|
And I click the Add template button
|
|
|
|
Scenario: Add parameter to template
|
|
And I enter S into transclusion Content box
|
|
And I see a list of template suggestions
|
|
And I click the Add template button
|
|
And I click Add parameter
|
|
And I see an input text area
|
|
When I enter x in the parameter box
|
|
Then I should see the Insert template button
|
|
|
|
Scenario: Remove parameter
|
|
And I enter S into transclusion Content box
|
|
And I see a list of template suggestions
|
|
And I click the Add template button
|
|
And I click Add parameter
|
|
And I see an input text area
|
|
And I enter q in the parameter box
|
|
And I click the parameter representation containing q
|
|
When I click Remove parameter
|
|
Then I should see the Add parameter link
|