From 5b439da8bc757f490f610e7bbe09d0f95fad554b Mon Sep 17 00:00:00 2001 From: Cmcmahon Date: Wed, 23 Jul 2014 16:59:58 -0700 Subject: [PATCH] [BrowserTest] Add parameter no longer exists Change-Id: If422bedef833d0b97ca0105ad72c4ce69411bf38 --- .../browser/features/step_definitions/transclusion_steps.rb | 4 ---- .../browser/features/support/pages/visual_editor_page.rb | 1 - modules/ve-mw/tests/browser/features/transclusion.feature | 4 +--- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/ve-mw/tests/browser/features/step_definitions/transclusion_steps.rb b/modules/ve-mw/tests/browser/features/step_definitions/transclusion_steps.rb index c1067432f2..229245ab56 100644 --- a/modules/ve-mw/tests/browser/features/step_definitions/transclusion_steps.rb +++ b/modules/ve-mw/tests/browser/features/step_definitions/transclusion_steps.rb @@ -5,10 +5,6 @@ Given(/^I can see the Transclusion User Interface$/) do end end -Given(/^I click Add parameter$/) do - on(VisualEditorPage).add_parameter_element.when_present.click -end - When(/^I click Remove parameter$/) do on(VisualEditorPage).remove_parameter_element.when_present.click end diff --git a/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb b/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb index c92b82d375..681f740b80 100644 --- a/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb +++ b/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb @@ -92,7 +92,6 @@ class VisualEditorPage # not having beta warning makes iframes off by one in_iframe(index: 0) do |frame| - span(:add_parameter, text: "Add more information", frame: frame) span(:add_template, text: "Add template", frame: frame) span(:insert_template, text: "Insert template", frame: frame) span(:confirm_switch, text: "Keep changes", frame: frame) diff --git a/modules/ve-mw/tests/browser/features/transclusion.feature b/modules/ve-mw/tests/browser/features/transclusion.feature index d05ede0133..e210bc2c84 100644 --- a/modules/ve-mw/tests/browser/features/transclusion.feature +++ b/modules/ve-mw/tests/browser/features/transclusion.feature @@ -17,7 +17,6 @@ Feature: VisualEditor Transclusion 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 @@ -26,9 +25,8 @@ Feature: VisualEditor Transclusion 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 + Then I should see the Insert template button