Scenario: Too long input for alias # features/aliases.feature:180
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong" as new aliases # features/step_definitions/aliases_steps.rb:24
And I click the header save button # features/step_definitions/header_steps.rb:18
Then An error message should be displayed # features/step_definitions/entity_steps.rb:110
@bugfix @modify_entity @save_aliases
Scenario: Zombie alias bugfix # features/aliases.feature:187
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "zombie" as new aliases # features/step_definitions/aliases_steps.rb:24
And I click the header save button # features/step_definitions/header_steps.rb:18
And I reload the page # features/step_definitions/entity_steps.rb:114
And I click the header edit button # features/step_definitions/header_steps.rb:10
And I empty the first alias # features/step_definitions/aliases_steps.rb:9
And I click the header save button # features/step_definitions/header_steps.rb:18
And I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
And I click the header save button # features/step_definitions/header_steps.rb:18
Then There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
And List of aliases should be "alias123" # features/step_definitions/aliases_steps.rb:76
@bugfix @ui_only
Scenario: Bugfix for editbutton appearing when it should not # features/aliases.feature:202
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I click the header cancel button # features/step_definitions/header_steps.rb:14
And I click the header edit button # features/step_definitions/header_steps.rb:10
Then Header edit button should not be there # features/step_definitions/header_steps.rb:33
When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
Then Sitelink edit button should not be there # features/step_definitions/sitelinks_steps.rb:96
And Sitelink remove button should be disabled # features/step_definitions/sitelinks_steps.rb:87
And Sitelink save button should be disabled # features/step_definitions/sitelinks_steps.rb:113
And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
And Sitelink help field should be there # features/step_definitions/sitelinks_steps.rb:138
And Sitelink siteid input field should be there # features/step_definitions/sitelinks_steps.rb:142
And Sitelink pagename input field should not be there # features/step_definitions/sitelinks_steps.rb:154
@ui_only
Scenario Outline: Type site id # features/sitelinks.feature:36
When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
And I type <siteid> into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
Then Sitelink pagename input field should be there # features/step_definitions/sitelinks_steps.rb:150
And Sitelink save button should be disabled # features/step_definitions/sitelinks_steps.rb:113
And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
And Sitelink remove button should be disabled # features/step_definitions/sitelinks_steps.rb:87
And Sitelink siteid dropdown should be there # features/step_definitions/sitelinks_steps.rb:165
And Sitelink siteid first suggestion should include <expected_element> # features/step_definitions/sitelinks_steps.rb:177
Examples:
| siteid | expected_element |
| en | English |
| he | עברית |
timed out after 10 seconds, waiting for {:css=>"div[data-wb-sitelinks-group='wikipedia'] ul li:nth-child(1) span.wikibase-sitelinkview-link input:not(.wikibase-pagesuggester-disabled)", :tag_name=>"input or textarea", :type=>"(any text type)"} to become present (Watir::Wait::TimeoutError)
features/sitelinks.feature:39:in `Then Sitelink pagename input field should be there'
@ui_only
Scenario Outline: Type site id and page name # features/sitelinks.feature:52
When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
And I type <siteid> into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
And I type <pagename> into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
Then Sitelink save button should be there # features/step_definitions/sitelinks_steps.rb:105
And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
And Sitelink remove button should be there # features/step_definitions/sitelinks_steps.rb:79
And Sitelink pagename dropdown should be there # features/step_definitions/sitelinks_steps.rb:181
And Sitelink pagename first suggestion should be <expected_element> # features/step_definitions/sitelinks_steps.rb:189
Examples:
| siteid | pagename | expected_element |
| en | Main Page | Main Page |
| he | עמוד ראשי | עמוד ראשי |
timed out after 10 seconds, waiting for {:css=>"div[data-wb-sitelinks-group='wikipedia'] ul li:nth-child(1) span.wikibase-sitelinkview-link input:not(.wikibase-pagesuggester-disabled)", :tag_name=>"input or textarea", :type=>"(any text type)"} to become present (Watir::Wait::TimeoutError)
./features/support/modules/sitelink_module.rb:98:in `/^I type (.+) into the (\d+). page input field$/'
features/sitelinks.feature:55:in `And I type <pagename> into the 1. page input field'
@ui_only
Scenario: Type site id and page name and change site id to something senseless # features/sitelinks.feature:68
When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
And I type Main Page into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
And I type nonexistingwiki into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
Then Sitelink save button should be disabled # features/step_definitions/sitelinks_steps.rb:113
And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
And Sitelink remove button should be disabled # features/step_definitions/sitelinks_steps.rb:87
And Sitelink pagename input field should not be there # features/step_definitions/sitelinks_steps.rb:154
@ui_only
Scenario Outline: Cancel sitelink during siteid selection # features/sitelinks.feature:79
When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
And I <cancel> # features/step_definitions/sitelinks_steps.rb:17
Then Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
And Sitelink remove button should not be there # features/step_definitions/sitelinks_steps.rb:83
And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
And Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
And There should be 0 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
Examples:
| cancel |
| click the sitelink cancel button |
| press the ESC key in the siteid input field |
@ui_only
Scenario Outline: Cancel sitelink during pagename selection # features/sitelinks.feature:95
When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
And I <cancel> # features/step_definitions/sitelinks_steps.rb:17
Then Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
And Sitelink remove button should not be there # features/step_definitions/sitelinks_steps.rb:83
And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
And Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
And There should be 0 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
Examples:
| cancel |
| click the sitelink cancel button |
| press the ESC key in the pagename input field |
@modify_entity @save_sitelink @smoke
Scenario Outline: Save sitelink # features/sitelinks.feature:112
Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
| enwiki | Asia |
When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
And I type Asia into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
And I <save> # features/step_definitions/sitelinks_steps.rb:21
Then There should be 1 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
Examples:
| save |
| click the sitelink save button |
| press the RETURN key in the pagename input field |
@modify_entity @save_sitelink
Scenario Outline: Save sitelink and reload # features/sitelinks.feature:127
Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
| enwiki | Asia |
When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
And I type Asia into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
And I <save> # features/step_definitions/sitelinks_steps.rb:21
And I reload the page # features/step_definitions/entity_steps.rb:114
Then There should be 1 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
| enwiki | Asia |
| enwiki | Europe |
When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
| en | Asia |
And I reload the page # features/step_definitions/entity_steps.rb:114
And I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
And I type Europe into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
timed out after 10 seconds, waiting for {:css=>"div[data-wb-sitelinks-group='wikipedia'] ul li:nth-child(1) span.wikibase-sitelinkview-link input:not(.wikibase-pagesuggester-disabled)", :tag_name=>"input or textarea", :type=>"(any text type)"} to become present (Watir::Wait::TimeoutError)
./features/support/modules/sitelink_module.rb:98:in `/^I type (.+) into the (\d+). page input field$/'
features/sitelinks.feature:151:in `And I type Europe into the 1. page input field'
And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
Then There should be 1 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
And Sitelink remove button should not be there # features/step_definitions/sitelinks_steps.rb:83
Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
| enwiki | Asia |
| sqwiki | Wikipedia |
When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
And I type <siteid> into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
And I type <pagename> into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
Then Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
And Sitelink remove button should not be there # features/step_definitions/sitelinks_steps.rb:83
And Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
And There should be 1 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
And Sitelink language code should include <siteid> # features/step_definitions/sitelinks_steps.rb:197
And Sitelink link text should be <normalized_pagename> # features/step_definitions/sitelinks_steps.rb:201
And Sitelink link should lead to article <normalized_pagename> # features/step_definitions/sitelinks_steps.rb:205
Examples:
| siteid | pagename | normalized_pagename |
| en | Asia | Asia |
A parameter that is required was missing. (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) (param-missing) (MediawikiApi::ApiError)
./features/step_definitions/entity_steps.rb:104:in `block (2 levels) in <top (required)>'
./features/step_definitions/entity_steps.rb:103:in `/^The following sitelinks do not exist:$/'
features/sitelinks.feature:160:in `Given The following sitelinks do not exist:'
| sq | wikipedia | Wikipedia |
A parameter that is required was missing. (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) (param-missing) (MediawikiApi::ApiError)
./features/step_definitions/entity_steps.rb:104:in `block (2 levels) in <top (required)>'
./features/step_definitions/entity_steps.rb:103:in `/^The following sitelinks do not exist:$/'
features/sitelinks.feature:160:in `Given The following sitelinks do not exist:'
Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
| enwiki | Europe |
| dewiki | Test |
| sqwiki | Wikipedia |
A parameter that is required was missing. (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) (param-missing) (MediawikiApi::ApiError)
./features/step_definitions/entity_steps.rb:104:in `block (2 levels) in <top (required)>'
./features/step_definitions/entity_steps.rb:103:in `/^The following sitelinks do not exist:$/'
features/sitelinks.feature:184:in `Given The following sitelinks do not exist:'
When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
| en | Europe |
| de | Test |
| sq | Wikipedia |
Then There should be 3 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
| enwiki | Europe |
| dewiki | Test |
| sqwiki | Wikipedia |
A parameter that is required was missing. (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) (param-missing) (MediawikiApi::ApiError)
./features/step_definitions/entity_steps.rb:104:in `block (2 levels) in <top (required)>'
./features/step_definitions/entity_steps.rb:103:in `/^The following sitelinks do not exist:$/'
features/sitelinks.feature:196:in `Given The following sitelinks do not exist:'
When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
| en | Europe |
| de | Test |
| sq | Wikipedia |
And I remove all sitelinks # features/step_definitions/sitelinks_steps.rb:51
And I reload the page # features/step_definitions/entity_steps.rb:114
Then There should be 0 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
@modify_entity @save_sitelink
Scenario: List of sitelinks is complete # features/sitelinks.feature:210
Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
| enwiki | Europe |
When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
| en | Europe |
And I mock that the list of sitelinks is complete # features/step_definitions/sitelinks_steps.rb:63
And I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
features/sitelinks.feature:216:in `And I click the sitelink edit button'
Then Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
@save_sitelink
Scenario: Add sitelink to non existent page # features/sitelinks.feature:220
When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
And I type xyz_nonexistentarticle_xyz into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
Then An error message should be displayed for sitelink group wikipedia # features/step_definitions/sitelinks_steps.rb:212
@save_sitelink
Scenario: Add new sitelink to already referenced site # features/sitelinks.feature:228
Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
| enwiki | Asia |
When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
| en | Asia |
And I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
features/sitelinks.feature:233:in `And I click the sitelink edit button'
And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
And I type en into the 2. siteid input field # features/step_definitions/sitelinks_steps.rb:43
Then Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
# Wikidata UI tests
#
# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)