mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Merge "[BrowserTest] Updated random page step to language screenshot page"
This commit is contained in:
commit
23a0fcb249
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
@ -219,4 +218,4 @@ end
|
|||
Then(/^I should see the VisualEditor tool-bar$/) do
|
||||
on(VisualEditorPage).toolbar_element.when_present.should be_visible
|
||||
capture_screenshot("#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", [@current_page.right_navigation_element, @current_page.left_navigation_element, @current_page.toolbar_element])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue