Cmcmahon has submitted this change and it was merged. Change subject: Fixed upload wizard tests ......................................................................
Fixed upload wizard tests Change-Id: Ic86383e950311c427a7d61123e6b253f447f40e2 --- M features/support/pages/describe_page.rb M features/support/pages/release_rights_page.rb M features/support/pages/upload_page.rb M features/support/pages/upload_wizard_page.rb M features/support/pages/use_page.rb 5 files changed, 20 insertions(+), 5 deletions(-) Approvals: Cmcmahon: Verified; Looks good to me, approved jenkins-bot: Verified diff --git a/features/support/pages/describe_page.rb b/features/support/pages/describe_page.rb index dc5964d..e6e5c83 100644 --- a/features/support/pages/describe_page.rb +++ b/features/support/pages/describe_page.rb @@ -2,7 +2,10 @@ include PageObject include URL - page_url URL.url('Special:UploadWizard') + def self.url + URL.url('Special:UploadWizard') + end + page_url url textarea(:description, name: /^description/) div(:next_parent, id: 'mwe-upwiz-stepdiv-details') diff --git a/features/support/pages/release_rights_page.rb b/features/support/pages/release_rights_page.rb index 9b86cf2..79561c4 100644 --- a/features/support/pages/release_rights_page.rb +++ b/features/support/pages/release_rights_page.rb @@ -2,7 +2,10 @@ include PageObject include URL - page_url URL.url('Special:UploadWizard') + def self.url + URL.url('Special:UploadWizard') + end + page_url url radio(:my_own_work, id: 'deedChooser1-ownwork') div(:next_parent, id: 'mwe-upwiz-stepdiv-deeds') diff --git a/features/support/pages/upload_page.rb b/features/support/pages/upload_page.rb index 7c43b3c..533c866 100644 --- a/features/support/pages/upload_page.rb +++ b/features/support/pages/upload_page.rb @@ -2,7 +2,10 @@ include PageObject include URL - page_url URL.url('Special:UploadWizard') + def self.url + URL.url('Special:UploadWizard') + end + page_url url span(:continue, text: 'Continue') file_field(:select_file, name: 'file') diff --git a/features/support/pages/upload_wizard_page.rb b/features/support/pages/upload_wizard_page.rb index b864852..f6ef6ff 100644 --- a/features/support/pages/upload_wizard_page.rb +++ b/features/support/pages/upload_wizard_page.rb @@ -2,7 +2,10 @@ include PageObject include URL - page_url URL.url('Special:UploadWizard') + def self.url + URL.url('Special:UploadWizard') + end + page_url url text_field(:add_categories, id: 'categories0') text_field(:altitude, id: 'location-altitude0') diff --git a/features/support/pages/use_page.rb b/features/support/pages/use_page.rb index 385c3fc..14ef8fe 100644 --- a/features/support/pages/use_page.rb +++ b/features/support/pages/use_page.rb @@ -2,7 +2,10 @@ include PageObject include URL - page_url URL.url('Special:UploadWizard') + def self.url + URL.url('Special:UploadWizard') + end + page_url url span(:upload_more_files, text: 'Upload more files') end -- To view, visit https://gerrit.wikimedia.org/r/61573 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ic86383e950311c427a7d61123e6b253f447f40e2 Gerrit-PatchSet: 3 Gerrit-Project: qa/browsertests Gerrit-Branch: master Gerrit-Owner: Zfilipin <zfili...@wikimedia.org> Gerrit-Reviewer: Cmcmahon <cmcma...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits