Cmcmahon has submitted this change and it was merged. Change subject: Feature: Print/export section expand and collapse ......................................................................
Feature: Print/export section expand and collapse Added the scenario to check that the Print/export section is hidden after clicking on it for the sec ond time. Bug: 48225 Change-Id: Iebb017c7245bb4bc4067a0f6cdb9a1ca832899bd --- M features/print_export_menu_readonly.feature M features/step_definitions/print_export_menu_steps.rb 2 files changed, 11 insertions(+), 1 deletion(-) Approvals: Cmcmahon: Verified; Looks good to me, approved diff --git a/features/print_export_menu_readonly.feature b/features/print_export_menu_readonly.feature index a564734..c5d2dba 100644 --- a/features/print_export_menu_readonly.feature +++ b/features/print_export_menu_readonly.feature @@ -1,5 +1,5 @@ # Feature files that end with "_readonly.feature" should be read only, so they could be run at en.wikipedia.org [email protected] @en.wikipedia.org @test2.wikipedia.org [email protected] @en.wikipedia.org Feature: Print/Export menu Expand and Collapse Scenario: Check for Print/export section Collapsed @@ -10,3 +10,9 @@ Given I am at random page When I click Print/export Then Print/export section should be expanded + + Scenario: Print/export section collapses after it is expanded + Given I am at random page + When I click Print/export + And I click Print/export again + Then Print/export section should be collapsed diff --git a/features/step_definitions/print_export_menu_steps.rb b/features/step_definitions/print_export_menu_steps.rb index 863f4af..828336c 100644 --- a/features/step_definitions/print_export_menu_steps.rb +++ b/features/step_definitions/print_export_menu_steps.rb @@ -17,3 +17,7 @@ When(/^I click Print\/export$/) do on(RandomPage).print_export end + +When(/^I click Print\/export again$/) do + step 'I click Print/export' +end -- To view, visit https://gerrit.wikimedia.org/r/63825 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Iebb017c7245bb4bc4067a0f6cdb9a1ca832899bd Gerrit-PatchSet: 5 Gerrit-Project: qa/browsertests Gerrit-Branch: master Gerrit-Owner: Karim.rayani <[email protected]> Gerrit-Reviewer: Cmcmahon <[email protected]> Gerrit-Reviewer: Zfilipin <[email protected]> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
