2013-10-29 05:43:27 +00:00
|
|
|
@ie6-bug @ie7-bug @ie8-bug @ie9-bug @ie10-bug @en.wikipedia.beta.wmflabs.org @test2.wikipedia.org @login
|
2013-08-28 13:02:52 +00:00
|
|
|
Feature: VisualEditor Transclusion
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given I am logged in
|
|
|
|
And I am at my user page
|
|
|
|
When I click Edit for VisualEditor
|
|
|
|
And I click Transclusion
|
|
|
|
|
|
|
|
Scenario: Add template
|
|
|
|
Given I can see the Transclusion User Interface
|
2013-12-17 13:30:07 +00:00
|
|
|
When I enter N 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
|
|
|
|
Given I can see the Transclusion User Interface
|
2013-12-17 13:30:07 +00:00
|
|
|
And I enter N 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-07 22:31:52 +00:00
|
|
|
Then I should see the Apply changes button
|
2013-08-28 13:02:52 +00:00
|
|
|
|
|
|
|
Scenario: Remove parameter
|
|
|
|
Given I can see the Transclusion User Interface
|
2013-12-17 13:30:07 +00:00
|
|
|
And I enter N 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
|
2013-08-28 13:02:52 +00:00
|
|
|
And I enter x in the parameter box
|
2014-03-07 22:31:52 +00:00
|
|
|
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
|