jenkins-bot has submitted this change and it was merged.
Change subject: Add browser test for "upload more files"
......................................................................
Add browser test for "upload more files"
Should be working.
Bug: T86119
Change-Id: I18b97e40572cc38fc48bb24f284a8cbb3595036c
---
M tests/browser/features/step_definitions/upload_wizard_steps.rb
M tests/browser/features/upload_wizard.feature
A tests/browser/features/upload_wizard_more_files.feature
3 files changed, 44 insertions(+), 2 deletions(-)
Approvals:
Gilles: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/browser/features/step_definitions/upload_wizard_steps.rb
b/tests/browser/features/step_definitions/upload_wizard_steps.rb
index 7ef8814..571f0ee 100644
--- a/tests/browser/features/step_definitions/upload_wizard_steps.rb
+++ b/tests/browser/features/step_definitions/upload_wizard_steps.rb
@@ -45,6 +45,7 @@
end
When(/^I click Next button at Learn page$/) do
+ sleep 1
on(LearnPage).next_element.when_present(15).click
on(LearnPage).wait_for_ajax
end
@@ -164,3 +165,7 @@
Then(/^a duplicate name error should appear$/) do
on(UploadPage).duplicate_error_element.when_present.should be_visible
end
+
+When(/^I click Upload more files button at Use page$/) do
+ on(UsePage).upload_more_files_element.when_present(15).click
+end
diff --git a/tests/browser/features/upload_wizard.feature
b/tests/browser/features/upload_wizard.feature
index c464331..3c1c408 100644
--- a/tests/browser/features/upload_wizard.feature
+++ b/tests/browser/features/upload_wizard.feature
@@ -92,5 +92,3 @@
And I click Next button at Describe page
Then Use page should open
And Upload more files button should be there
-
-
diff --git a/tests/browser/features/upload_wizard_more_files.feature
b/tests/browser/features/upload_wizard_more_files.feature
new file mode 100644
index 0000000..ab970d8
--- /dev/null
+++ b/tests/browser/features/upload_wizard_more_files.feature
@@ -0,0 +1,39 @@
+#
+# This file is subject to the license terms in the COPYING file found in the
+# UploadWizard top-level directory and at
+#
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FUploadWizard/HEAD/COPYING.
No part of
+# UploadWizard, including this file, may be copied, modified, propagated, or
+# distributed except according to the terms contained in the COPYING file.
+#
+# Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
+# UploadWizard top-level directory and at
+#
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FUploadWizard/HEAD/CREDITS
+#
+
+# IMPORTANT: For scenarios which set a preference, tag as @preferenceSet to
+# reset to defaults after they are finished. (See support/hooks.rb)
+
+@chrome @commons.wikimedia.beta.wmflabs.org @firefox @login
@test2.wikipedia.org
+Feature: UploadWizard
+
+ Background:
+ Given I am logged in
+ And my Preferences Skip tutorial box is unchecked
+ When I navigate to Upload Wizard
+
+ Scenario: Upload more files
+ When I click Next button at Learn page
+ And I add file image.png
+ And click button Continue
+ And I click This file is my own work
+ And I click Next button at Release rights page
+ And I enter title
+ And I enter description
+ And I enter category
+ And I enter date created
+ And I click Next button at Describe page
+ And I click Upload more files button at Use page
+ And I add file image3.png
+ Then there should be 1 uploads
+ And there should be an upload for image3.png
+
--
To view, visit https://gerrit.wikimedia.org/r/186543
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I18b97e40572cc38fc48bb24f284a8cbb3595036c
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: MarkTraceur <[email protected]>
Gerrit-Reviewer: Cmcmahon <[email protected]>
Gerrit-Reviewer: Gilles <[email protected]>
Gerrit-Reviewer: MarkTraceur <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits