Arrbee has uploaded a new change for review. https://gerrit.wikimedia.org/r/63140
Change subject: Adding more test scenarios for ULS user settings ...................................................................... Adding more test scenarios for ULS user settings Adding the test scenarios for the display, font and input settings for logged in and anonymous users Change-Id: I366ef64ef51cde67117b344d4cb88cb77b944af9 --- A features/backlog/uls_cog_tooltip_revert-anonymous.feature A features/backlog/uls_display_settings_menu_anonymous.feature A features/backlog/uls_display_settings_menu_logged-user.feature A features/backlog/uls_font_download_anonymous.feature A features/backlog/uls_language_selection_logged_user.feature A features/backlog/uls_menu_font_anonymous.feature 6 files changed, 220 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/qa/browsertests refs/changes/40/63140/1 diff --git a/features/backlog/uls_cog_tooltip_revert-anonymous.feature b/features/backlog/uls_cog_tooltip_revert-anonymous.feature new file mode 100644 index 0000000..4efc8a0 --- /dev/null +++ b/features/backlog/uls_cog_tooltip_revert-anonymous.feature @@ -0,0 +1,12 @@ +Feature: ULS cog tooltip does not allow to revert language changes for anonymous users + +Background: In all of the following scenarios the global variable $wgULSPosition is set to 'interlanguage' for the wiki + And the base language at the start of the test is English + And the tests needs to run with an anonymous user + And setlang=fr is used + And the URL http://en.wikipedia.beta.wmflabs.org/wiki/Main_Page is used + +Scenario: The cog icon's tooltip is always "Language settings" for anonymous users + Given I am on a wiki content page with interlanguage links + When I move the cursor over the cog icon + Then I should see a tooltip with the "Language settings" text. diff --git a/features/backlog/uls_display_settings_menu_anonymous.feature b/features/backlog/uls_display_settings_menu_anonymous.feature new file mode 100644 index 0000000..a4b6350 --- /dev/null +++ b/features/backlog/uls_display_settings_menu_anonymous.feature @@ -0,0 +1,16 @@ +Feature: Display settings on the Language Settings panel menu for anonymous users + +Background: In all of the following scenarios the global variable $wgULSPosition is set to 'interlanguage' for the wiki. + And the base language at the start of the test is English + And the tests need to be run as an anonymous user + And URL to be used is http://en.wikipedia.beta.wmflabs.org/wiki/Main_Page + +Scenario: Language settings panel displays "Display" and "Input" options + Given I clicked the cog icon to open the 'Language Settings' panel + When the panel opens + Then I see the buttons "Display" and "Input" buttons on the left side + +Scenario: "Display" option is selected by default in a new Language settings panel + Given I clicked the cog icon to open the 'Language Settings' panel + When the panel opens + Then I see the button "Display" selected at the start diff --git a/features/backlog/uls_display_settings_menu_logged-user.feature b/features/backlog/uls_display_settings_menu_logged-user.feature new file mode 100644 index 0000000..fa58503 --- /dev/null +++ b/features/backlog/uls_display_settings_menu_logged-user.feature @@ -0,0 +1,72 @@ +Feature: Display settings on the Language Settings panel menu for logged-in users + +Background: In all of the following scenarios the global variable $wgULSPosition is set to 'interlanguage' for the wiki. + And the base language at the start of the test is English + And the tests need to be run as a logged-in user + And URL to be used is http://en.wikipedia.beta.wmflabs.org/wiki/Main_Page + +Scenario: Language settings panel displays "Display" and "Input" options + Given I clicked the cog icon to open the 'Language Settings' panel + When the panel opens + Then I see the buttons "Display" and "Input" buttons on the left side + +Scenario: "Display" option is selected by default in a new Language settings panel + Given I clicked the cog icon to open the 'Language Settings' panel + When the panel opens + Then I see the button "Display" selected at the start + +Scenario: Selected option can be changed in the Language settings panel + Given I clicked the cog icon to open the 'Language Settings' panel with 'Display' settings selected by default + When I click on the 'Input' option + Then I see the "Display" options changed to the "Input" options + +Scenario: Language settings panel can be closed after changing the selected option and closing + Given I clicked the cog icon to open the 'Language Settings' panel with 'Display' settings selected by default + And I have clicked the 'Input" option to select it + When I click on the close button + Then the "Language settings" panel disappears + +Scenario: Language settings panel can be closed after changing the selected option and applying the setting + Given I clicked the cog icon to open the 'Language Settings' panel with 'Display' settings selected by default + And I have clicked the 'Input" option to select it + When I click on the 'apply settings' button + Then the "Language settings" panel disappears + +Scenario: Language settings panel can be closed after changing the selected option and cancelling + Given I clicked the cog icon to open the 'Language Settings' panel with 'Display' settings selected by default + And I have clicked the 'Input" option to select it + When I click on the 'cancel' button + Then the "Language settings" panel disappears + +Scenario: Selected option should be persistant on reopening the Language settings panel after closing + Given I clicked the cog icon to open the 'Language Settings' panel with 'Display' settings selected by default + And I have clicked the 'Input" option to select it + And I have closed the panel using the X button to close it + When I click on the cog to reopen the panel + Then I see the "Input" option selected by default + +Scenario: Selected option should be persistant on reopening the Language settings panel after applying the setting + Given I clicked the cog icon to open the 'Language Settings' panel with 'Display' settings selected by default + And I have clicked the 'Input" option to select it + And I have closed the panel using the 'apply setting' button to close it + When I click on the cog to reopen the panel + Then I see the "Input" option selected by default + +Scenario: Selected option should be persistant on reopening the Language settings panel after cancelling + Given I clicked the cog icon to open the 'Language Settings' panel with 'Display' settings selected by default + And I have clicked the 'Input" option to select it + And I have closed the panel using the 'cancel' button to close it + When I click on the cog to reopen the panel + Then I see the "Input" option selected by default + +Scenario: "Language" and "Fonts" are shown within the Display" option + Given I clicked the cog icon to open the 'Language Settings' panel + When the panel opens + And the 'Display" option is selected at the start + Then I see the "Language" and "Fonts" buttons on the right hand side + +Scenario: "Language" option in selected by default within the Display" option + Given I clicked the cog icon to open the 'Language Settings' panel + When the panel opens + And the 'Display" option is selected at the start + Then I see the "Language" button selected by default diff --git a/features/backlog/uls_font_download_anonymous.feature b/features/backlog/uls_font_download_anonymous.feature new file mode 100644 index 0000000..7892ba3 --- /dev/null +++ b/features/backlog/uls_font_download_anonymous.feature @@ -0,0 +1,19 @@ +Feature: Anonymous user can disable and enable the download of fonts + +Background: In all of the following scenarios the global variable $wgULSPosition is set to 'interlanguage' for the wiki. + And the base language at the start of the test is English + And the tests need to be run as an anonymous user + And URL to be used is http://en.wikipedia.beta.wmflabs.org/wiki/Main_Page + +Scenario: Font selection dropdown will be hidden + Given I clicked the cog icon to open the 'Language Settings' panel + And I have selected the 'Fonts' option + When I click on the 'Download font' checkbox button to uncheck it + Then I should see that dropdown button to select a font is hidden + +Scenario: Font selection dropdown will be shown + Given I clicked the cog icon to open the 'Language Settings' panel + And I have selected the 'Fonts' option + And the checkbox button to Download font is not selected + When I click on the 'Download font' checkbox button to check it + Then I should see that a dropdown button to select a font is displayed diff --git a/features/backlog/uls_language_selection_logged_user.feature b/features/backlog/uls_language_selection_logged_user.feature new file mode 100644 index 0000000..175e3a9 --- /dev/null +++ b/features/backlog/uls_language_selection_logged_user.feature @@ -0,0 +1,58 @@ +Feature: Language Selection from the Display settings on the Language Settings panel menu for logged-in users + +Background: In all of the following scenarios the global variable $wgULSPosition is set to 'interlanguage' for the wiki. + And the base language at the start of the test is English + And the tests need to be run as a logged in user + And URL to be used is http://en.wikipedia.beta.wmflabs.org/wiki/Main_Page + +Scenario: Logged in user can see the option to change 'Display Language' + Given I am logged in to the wiki + And I am on the Display settings in the Language Settings panel + When the panel opens + Then I see 4 buttons, 3 with names of language and 1 with ellipsis + +Scenario: Logged in user can see the a highlighted button for the active language + Given I am logged in to the wiki + And I am on the Display settings in the Language Settings panel + And the selected language for the interface is English + When the panel with 4 buttons opens + Then all the button for English should be highlighted in a different colour + +Scenario: Logged in user can see the active buttons change 'Display Language' + Given I am logged in to the wiki + And I am on the Display settings in the Language Settings panel + And the selected language for the interface is English + When the panel with 4 buttons opens + Then all the 4 buttons should be in an active state + +Scenario: Display language change is previewed immediately for logged-in users + Given I am logged in to the wiki + And I am on the Display settings in the Language Settings panel + And the selected language for the interface is English + When I click on the second button to select another language + Then the language on the menu items inside the panel should change to the new language + +Scenario: Logged in user can see the live preview of display language reverted if not applied before exiting using the cancel button + Given I am logged in to the wiki + And I am on the Display settings in the Language Settings panel + And the selected language for the interface is English + And I click on the second button to select another language to preview on the panel menu + When I click on 'cancel' button to exit the panel + And press the cog to reopen the panel + Then the menu items are not displayed in the previewed language + +Scenario: Logged in user can see the live preview of display language reverted if not applied before exiting using the close button + Given I am logged in to the wiki + And I am on the Display settings in the Language Settings panel + And the selected language for the interface is English + And I click on the second button to select another language to preview on the panel menu + When I click on 'close' button to exit the panel + And press the cog to reopen the panel + Then the menu items are not displayed in the previewed language + +Scenario: Logged in user can see ULS language selection dialog + Given I am logged in to the wiki + And I am on the Display settings in the Language Settings panel + And the selected language for the interface is English + When I click on the fourth button with the ellipsis + Then I should see the ULS language selection dialog diff --git a/features/backlog/uls_menu_font_anonymous.feature b/features/backlog/uls_menu_font_anonymous.feature new file mode 100644 index 0000000..9d2b54d --- /dev/null +++ b/features/backlog/uls_menu_font_anonymous.feature @@ -0,0 +1,43 @@ +Feature: Anonymous user can change the font used for the menu + +Background: In all of the following scenarios the global variable $wgULSPosition is set to 'interlanguage' for the wiki. + And the base language at the start of the test is English + And the tests need to be run as an anonymous user + And URL to be used is http://en.wikipedia.beta.wmflabs.org/wiki/Main_Page + +Scenario: "Fonts" option allows the font to the selected + Given I clicked the cog icon to open the 'Language Settings' panel + When I click on the 'Fonts' button + Then I see a dropdown button to select the font + +Scenario: "Fonts" selection dropdown button should be active + Given I clicked the cog icon to open the 'Language Settings' panel + When I click on the 'Fonts' button + Then I should see a dropdown button in an active state + +Scenario: "Fonts" selection dropdown button should display options to select + Given I clicked the cog icon to open the 'Language Settings' panel + And I have selected the 'Fonts' option + When I click on the dropdown button to select a font + Then I should see a list of fonts that I can select from + +Scenario: Font selected from the "Fonts" selection dropdown button should be used + Given I clicked the cog icon to open the 'Language Settings' panel + And I have selected the 'Fonts' option + When I click on the dropdown button and select a font + Then I should see selected font being immediately used in the page + +Scenario: Download font checkbox should be visible + Given I clicked the cog icon to open the 'Language Settings' panel + When I click on the 'Fonts' button + Then I should see a checkbox to 'Download font' + +Scenario: Download font checkbox should be active + Given I clicked the cog icon to open the 'Language Settings' panel + When I click on the 'Fonts' button + Then I should see the checkbox to 'Download font' in is an active state + +Scenario: Download font checkbox should be selected + Given I clicked the cog icon to open the 'Language Settings' panel + When I click on the 'Fonts' button + Then I should see that checkbox to 'Download font' is in a selected state -- To view, visit https://gerrit.wikimedia.org/r/63140 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I366ef64ef51cde67117b344d4cb88cb77b944af9 Gerrit-PatchSet: 1 Gerrit-Project: qa/browsertests Gerrit-Branch: master Gerrit-Owner: Arrbee <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
