Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/167983
Change subject: Fix history browser tests
......................................................................
Fix history browser tests
Bug: 72321
Change-Id: Id77d53b622fd4c274418f3b92e784ede8c167b09
---
M tests/browser/features/special_history.feature
M tests/browser/features/step_definitions/create_page_api_steps.rb
2 files changed, 2 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/83/167983/1
diff --git a/tests/browser/features/special_history.feature
b/tests/browser/features/special_history.feature
index 8d8215a..251219e 100644
--- a/tests/browser/features/special_history.feature
+++ b/tests/browser/features/special_history.feature
@@ -3,7 +3,7 @@
Background:
Given I am using the mobile site
- And the page "Selenium diff test" exists and has at least 51 edits
+ And the page "Selenium diff test" exists and has at least "51" edits
And I am on the "Selenium diff test" page
When I click on the history link in the last modified bar
diff --git a/tests/browser/features/step_definitions/create_page_api_steps.rb
b/tests/browser/features/step_definitions/create_page_api_steps.rb
index becabd2..ebbc040 100644
--- a/tests/browser/features/step_definitions/create_page_api_steps.rb
+++ b/tests/browser/features/step_definitions/create_page_api_steps.rb
@@ -74,13 +74,11 @@
on(APIPage).create "MediaWiki:mobile-frontend-terms-text", "Terms of use"
end
-Given(/^the page "(.*?)" exists and has at least (\d+) edits$/) do |title,
min_edit_count|
+Given(/^the page "(.*?)" exists and has at least "(\d+)" edits$/) do |title,
min_edit_count|
# Page must first exist before we can get edit count information
step 'the page "' + title + '" exists'
min_edit_count = min_edit_count.to_i
visit(ArticlePage, :using_params => {:article_name => title +
'?action=info'})
- # Open the third section which contains the edit count
- on(ArticlePage).third_section_element.when_present.click
on(ArticlePage) do |page|
(page.edit_count.gsub(',', '').to_i + 1).upto(min_edit_count) do |n|
on(APIPage).create title, "Test is used by Selenium web driver edit
##{n}"
--
To view, visit https://gerrit.wikimedia.org/r/167983
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id77d53b622fd4c274418f3b92e784ede8c167b09
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits