2014-05-09 16:47:42 +00:00
|
|
|
@chrome @en.wikipedia.beta.wmflabs.org @firefox @login @test2.wikipedia.org
|
2013-08-28 13:02:52 +00:00
|
|
|
Feature: VisualEditor Transclusion
|
|
|
|
|
|
|
|
Background:
|
2014-06-12 16:13:39 +00:00
|
|
|
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"
|
2014-05-09 16:47:42 +00:00
|
|
|
And I click in the editable part
|
|
|
|
And I click Transclusion
|
2014-05-02 19:31:14 +00:00
|
|
|
And I can see the Transclusion User Interface
|
2013-08-28 13:02:52 +00:00
|
|
|
|
|
|
|
Scenario: Add template
|
2014-07-03 16:07:01 +00:00
|
|
|
When I enter C into transclusion Content box
|
2014-03-07 22:31:52 +00:00
|
|
|
Then I see a list of template suggestions
|
|
|
|
And I click the Add template button
|
2013-08-28 13:02:52 +00:00
|
|
|
|
|
|
|
Scenario: Add parameter to template
|
2014-07-03 16:07:01 +00:00
|
|
|
And I enter C into transclusion Content box
|
2014-03-07 22:31:52 +00:00
|
|
|
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
|
2013-08-28 13:02:52 +00:00
|
|
|
When I enter x in the parameter box
|
2014-03-13 17:06:22 +00:00
|
|
|
Then I should see the Insert template button
|
2013-08-28 13:02:52 +00:00
|
|
|
|
|
|
|
Scenario: Remove parameter
|
2014-07-03 16:07:01 +00:00
|
|
|
And I enter C into transclusion Content box
|
2014-03-07 22:31:52 +00:00
|
|
|
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
|
2013-08-28 13:02:52 +00:00
|
|
|
When I click Remove parameter
|
2014-03-07 22:31:52 +00:00
|
|
|
Then I should see the Add parameter link
|