From 06f15fb7ebe8f68775d16ac5a084e78d6c96eff7 Mon Sep 17 00:00:00 2001 From: vikassy Date: Fri, 18 Jul 2014 17:57:36 +0530 Subject: [PATCH] [BrowserTest] Updated random page step to language screenshot page Change-Id: Ica2ae78afcba264d222b02923863b8f23452e259 --- .../features/language_screenshot.feature | 22 +++++++++---------- .../language_screenshot_steps.rb | 9 ++++---- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/modules/ve-mw/tests/browser/features/language_screenshot.feature b/modules/ve-mw/tests/browser/features/language_screenshot.feature index b67d01ef9e..1519597068 100644 --- a/modules/ve-mw/tests/browser/features/language_screenshot.feature +++ b/modules/ve-mw/tests/browser/features/language_screenshot.feature @@ -2,39 +2,39 @@ Feature: Language Screenshot Scenario: VisualEditor_Toolbar_Headings - Given I am editing a random page + Given I am editing language screenshot page When I click the down arrow on Headings interface Then I should see Headings pull-down menu Scenario: VisualEditor_Toolbar_Formatting - Given I am editing a random page + Given I am editing language screenshot page When I click the text style menu Then I should see Formatting pull-down menu Scenario: VisualEditor_More_Settings - Given I am editing a random page + Given I am editing language screenshot page When I click the hamburger menu Then I should see pull-down menu containing Page Settings Scenario: VisualEditor_Insert_Menu - Given I am editing a random page + Given I am editing language screenshot page When I click on the Insert menu Then I should see Insert pull-down menu Scenario: VisualEditor_Toolbar_SpecialCharacters - Given I am editing a random page + Given I am editing language screenshot page When I click on the Special character option in Insert menu Then I should see Special character Insertion window @login Scenario: VisualEditor_save_dialog Given I am logged in - And I am edit a random page with Testing Save + And I am edit language screenshot page with Testing Save When I click Save page Then I should see save changes dialog box Scenario: VisualEditor_Page_Settings - Given I am editing a random page + Given I am editing language screenshot page And I click the hamburger menu When I click on Page settings option Then I should see Page settings dialog box @@ -91,7 +91,7 @@ Feature: Language Screenshot Then I should see media in VisualEditor Scenario: VisualEditor_Cite_Pulldown - Given I am editing a random page + Given I am editing language screenshot page When I click on Cite menu Then I should see Cite dropdown menu @@ -108,16 +108,16 @@ Feature: Language Screenshot Scenario: VisualEditor_edit_tab Given I am logged in - When I am at a random page + When I go to the language screenshot page for screenshot Then I should see the right edit tab Scenario: VisualEditor_toolbar Given I am logged in - When I am editing a random page + When I am editing language screenshot page Then I should see the VisualEditor tool-bar Scenario: VisualEditor_category_editing - Given I am editing a random page + Given I am editing language screenshot page When I click on category in hamburger menu Then I should see category dialog box diff --git a/modules/ve-mw/tests/browser/features/step_definitions/language_screenshot_steps.rb b/modules/ve-mw/tests/browser/features/step_definitions/language_screenshot_steps.rb index 539029042e..d7a13dc7f9 100644 --- a/modules/ve-mw/tests/browser/features/step_definitions/language_screenshot_steps.rb +++ b/modules/ve-mw/tests/browser/features/step_definitions/language_screenshot_steps.rb @@ -25,14 +25,13 @@ Given(/^I go to the (.*?) page for screenshot$/) do |page_name| @browser.goto "#{@browser.url}&uselang=#{ENV['LANGUAGE_SCREENSHOT_CODE']}" end -Given(/^I am editing a random page$/) do - step "I am at a random page" - @browser.goto "#{@browser.url}?uselang=#{ENV['LANGUAGE_SCREENSHOT_CODE']}&vehidebetadialog=true&veaction=edit" +Given(/^I am editing language screenshot page$/) do + step "I go to the \"Language Screenshot\" page with source content \"Language Screenshot\"" step "I click in the editable part" end -Given(/^I am edit a random page with (.+)$/) do |content| - step "I am editing a random page" +Given(/^I am edit language screenshot page with (.+)$/) do |content| + step "I am editing language screenshot page" step "I edit the page with #{content}" end