mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 17:36:35 +00:00
d0b8f62276
Also add new checks for switch-modal Discard and Cancel options Change-Id: I228b0dee1d110f6a72be4966bbc5918f294ab717
24 lines
948 B
Gherkin
24 lines
948 B
Gherkin
@chrome @en.wikipedia.beta.wmflabs.org @firefox @login @test2.wikipedia.org
|
|
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
|
|
And I go to the browser specific edit page page
|
|
When I click Edit for VisualEditor
|
|
|
|
Scenario: Switch editing modes via toolbar
|
|
When I enter the wikitext editor
|
|
And I click Edit for VisualEditor
|
|
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
|
|
And I see the Cancel option
|
|
And I see the Discard option
|
|
And I clear the confirm dialog by clicking Keep changes
|
|
And I see the wikitext editor
|
|
And I click Edit for VisualEditor from this page
|
|
Then I should be in Visual Editor editing alternate mode
|