Rachel99 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/75110
Change subject: Visual editor appears if user is logged in
......................................................................
Visual editor appears if user is logged in
Change-Id: I9425a17713dfbc5aaf66a29961ff91ff95081680
---
M features/step_definitions/visual_editor_steps.rb
M features/visual_editor.feature
2 files changed, 13 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/qa/browsertests
refs/changes/10/75110/1
diff --git a/features/step_definitions/visual_editor_steps.rb
b/features/step_definitions/visual_editor_steps.rb
index d0cfc57..0e49847 100644
--- a/features/step_definitions/visual_editor_steps.rb
+++ b/features/step_definitions/visual_editor_steps.rb
@@ -57,5 +57,10 @@
end
Then(/^textbox with source text appears$/) do
- on(EditPage).article_text_element.should exist
+ on(EditPage).article_text_element.should exist
+end
+
+Then(/^Visual Editor page should open$/) do
+ @browser.url.should match /\?veaction=edit/
+ @browser.url.should_not match /&action=edit/
end
diff --git a/features/visual_editor.feature b/features/visual_editor.feature
index c31208f..07a34b3 100644
--- a/features/visual_editor.feature
+++ b/features/visual_editor.feature
@@ -7,7 +7,13 @@
And I click the Edit link on the wiki page
Then Edit Source page should open
And textbox with source text appears
-
+
+ Scenario: Visual editor appears if user is logged in
+ Given I am logged in
+ When I am at random page
+ And I click the Edit link on the wiki page
+ Then Visual Editor page should open
+
@login
Scenario: Basic edit
Given I am logged in
--
To view, visit https://gerrit.wikimedia.org/r/75110
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9425a17713dfbc5aaf66a29961ff91ff95081680
Gerrit-PatchSet: 1
Gerrit-Project: qa/browsertests
Gerrit-Branch: master
Gerrit-Owner: Rachel99 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits