diff --git a/modules/ve-mw/test/browser/Gemfile.lock b/modules/ve-mw/test/browser/Gemfile.lock index c23a2f6147..48eface033 100644 --- a/modules/ve-mw/test/browser/Gemfile.lock +++ b/modules/ve-mw/test/browser/Gemfile.lock @@ -22,19 +22,19 @@ GEM headless (1.0.1) i18n (0.6.9) json (1.8.1) - mediawiki_selenium (0.2.0) - cucumber (~> 1.3.10) - headless (~> 1.0.1) - json (~> 1.8.1) - net-http-persistent (~> 2.9.1) - page-object (~> 0.9.5) - rest-client (~> 1.6.7) - rspec-expectations (~> 2.14.4) - syntax (~> 1.2.0) + mediawiki_selenium (0.2.2) + cucumber (~> 1.3, >= 1.3.10) + headless (~> 1.0, >= 1.0.1) + json (~> 1.8, >= 1.8.1) + net-http-persistent (~> 2.9, >= 2.9.1) + page-object (~> 0.9, >= 0.9.5) + rest-client (~> 1.6, >= 1.6.7) + rspec-expectations (~> 2.14, >= 2.14.4) + syntax (~> 1.2, >= 1.2.0) mime-types (2.1) multi_json (1.8.4) multi_test (0.0.3) - net-http-persistent (2.9.3) + net-http-persistent (2.9.4) page-object (0.9.6) page_navigation (>= 0.9) selenium-webdriver (>= 2.39.0) diff --git a/modules/ve-mw/test/browser/features/step_definitions/common_steps.rb b/modules/ve-mw/test/browser/features/step_definitions/common_steps.rb deleted file mode 100644 index 6d4e24fdbc..0000000000 --- a/modules/ve-mw/test/browser/features/step_definitions/common_steps.rb +++ /dev/null @@ -1,3 +0,0 @@ -Given(/^I am logged in$/) do - visit(LoginPage).login_with(ENV["MEDIAWIKI_USER"], ENV["MEDIAWIKI_PASSWORD"]) -end diff --git a/modules/ve-mw/test/browser/features/support/modules/url_module.rb b/modules/ve-mw/test/browser/features/support/modules/url_module.rb deleted file mode 100644 index 1dd1856d38..0000000000 --- a/modules/ve-mw/test/browser/features/support/modules/url_module.rb +++ /dev/null @@ -1,10 +0,0 @@ -module URL - def self.url(name) - if ENV["MEDIAWIKI_URL"] - mediawiki_url = ENV["MEDIAWIKI_URL"] - else - mediawiki_url = "http://en.wikipedia.beta.wmflabs.org/wiki/" - end - "#{mediawiki_url}#{name}" - end -end diff --git a/modules/ve-mw/test/browser/features/support/pages/login_page.rb b/modules/ve-mw/test/browser/features/support/pages/login_page.rb deleted file mode 100644 index e4179e49e3..0000000000 --- a/modules/ve-mw/test/browser/features/support/pages/login_page.rb +++ /dev/null @@ -1,23 +0,0 @@ -class LoginPage - include PageObject - - include URL - page_url URL.url("Special:UserLogin") - - div(:feedback, class: "errorbox") - button(:login, id: "wpLoginAttempt") - text_field(:password, id: "wpPassword1") - a(:password_strength, text: "password strength") - a(:phishing, text: "phishing") - text_field(:username, id: "wpName1") - a(:username_displayed, title: /Your user page/) - - def logged_in_as_element - @browser.div(id: "mw-content-text").p.b - end - def login_with(username, password) - self.username = username - self.password = password - login - end -end