2013-12-18 16:52:42 +00:00
|
|
|
Feature: Switching between wikitext and Visual Editor modes
|
|
|
|
|
|
|
|
Test for both pathways that allow switching between Visual Editor and wikitext editing modes.
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given I am logged in
|
2014-06-11 16:12:08 +00:00
|
|
|
And I go to the browser specific edit page page
|
2014-07-23 22:02:53 +00:00
|
|
|
When I edit the page with Switch edit mode test
|
2013-12-18 16:52:42 +00:00
|
|
|
|
|
|
|
Scenario: Switch editing modes via toolbar
|
2014-04-07 17:46:36 +00:00
|
|
|
When I enter the wikitext editor
|
|
|
|
And I click Edit for VisualEditor
|
2013-12-18 16:52:42 +00:00
|
|
|
Then I should be in Visual Editor editing mode
|
|
|
|
|
|
|
|
Scenario: Switch editing modes via Page Settings drop-down menu
|
|
|
|
When I click the Switch to source editing menu option
|
2014-07-16 22:31:05 +00:00
|
|
|
And I see the Cancel option
|
|
|
|
And I see the Discard option
|
|
|
|
And I clear the confirm dialog by clicking Keep changes
|
2014-04-07 17:46:36 +00:00
|
|
|
And I see the wikitext editor
|
|
|
|
And I click Edit for VisualEditor from this page
|
2013-12-18 16:52:42 +00:00
|
|
|
Then I should be in Visual Editor editing alternate mode
|