From d82a0eabd8cd7ca6eeea449b696a49394a10cd17 Mon Sep 17 00:00:00 2001 From: Cmcmahon Date: Thu, 12 Jun 2014 09:13:39 -0700 Subject: [PATCH] [BrowserTest] create a Template at run time 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 --- modules/ve-mw/test/browser/features/transclusion.feature | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/ve-mw/test/browser/features/transclusion.feature b/modules/ve-mw/test/browser/features/transclusion.feature index 9dad48d090..d05ede0133 100644 --- a/modules/ve-mw/test/browser/features/transclusion.feature +++ b/modules/ve-mw/test/browser/features/transclusion.feature @@ -2,18 +2,19 @@ Feature: VisualEditor Transclusion Background: - Given I go to the "Transclusion VisualEditor Test" page with content "Transclusion VisualEditor Test" + 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 N into transclusion Content box + 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 N into transclusion Content box + 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 @@ -22,7 +23,7 @@ Feature: VisualEditor Transclusion Then I should see the Insert template button Scenario: Remove parameter - And I enter N into transclusion Content box + 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