Jhall has uploaded a new change for review. https://gerrit.wikimedia.org/r/111142
Change subject: [Browser test] WIP Test VisualEditor availability on production wikis ...................................................................... [Browser test] WIP Test VisualEditor availability on production wikis Bug: 60797 Change-Id: I0823e1d569410be5cfa57db77d402bd2c53a5ad8 --- A modules/ve-mw/test/browser/features/step_definitions/verify_production_wikis_steps.rb A modules/ve-mw/test/browser/features/verify_production_wikis.feature 2 files changed, 29 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor refs/changes/42/111142/1 diff --git a/modules/ve-mw/test/browser/features/step_definitions/verify_production_wikis_steps.rb b/modules/ve-mw/test/browser/features/step_definitions/verify_production_wikis_steps.rb new file mode 100644 index 0000000..72c74bf --- /dev/null +++ b/modules/ve-mw/test/browser/features/step_definitions/verify_production_wikis_steps.rb @@ -0,0 +1,13 @@ +When(/^I visit (.+) with a VisualEditor action URL$/) do |site| + target_url = "http://" + site + ".wikipedia.org/wiki/Special:Random?veaction=edit" + @browser.goto(target_url) +end + +When(/^I dismiss the welcome message and IP warning$/) do + @browser.frame(:class => "oo-ui-frame").when_present.a(:class => "oo-ui-buttonWidget-button").click + @browser.span(:class => "oo-ui-iconedElement-icon oo-ui-icon-alert").when_present.click +end + +Then(/^I should see the Visual Editor editing surface$/) do + @browser.div(:class => "ve-ui-surface ve-init-mw-viewPageTarget-surface").should exist +end diff --git a/modules/ve-mw/test/browser/features/verify_production_wikis.feature b/modules/ve-mw/test/browser/features/verify_production_wikis.feature new file mode 100644 index 0000000..f854a45 --- /dev/null +++ b/modules/ve-mw/test/browser/features/verify_production_wikis.feature @@ -0,0 +1,16 @@ +Feature: VisualEditor on production wikis + + Verify that VisualEditor is available as + expected on production wiki sites. + + Scenario Outline: VisualEditor production availability + Given I visit <wiki> with a VisualEditor action URL + When I dismiss the welcome message and IP warning + Then I should see the Visual Editor editing surface + Examples: + | wiki | + | mh | + | min | + | mi | + | mk | + | ml | -- To view, visit https://gerrit.wikimedia.org/r/111142 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0823e1d569410be5cfa57db77d402bd2c53a5ad8 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: Jhall <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
