Page MenuHomePhabricator
Paste P2672

bundle exec cucumber --tag @local_config
ArchivedPublic

Authored by zeljkofilipin on Feb 25 2016, 5:07 PM.
Tags
None
Referenced Files
F3428492: bundle exec cucumber --tag @local_config
Feb 25 2016, 5:07 PM
Subscribers
None
$ bundle exec cucumber --tag @local_config
# Wikidata UI tests
#
# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for item aliases tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Edit aliases
Background: # features/aliases.feature:11
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@ui_only
Scenario: Type new alias # features/aliases.feature:17
When 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
Then Header cancel button should be there # features/step_definitions/header_steps.rb:37
And Header save button should be there # features/step_definitions/header_steps.rb:45
And Modified alias input field should be there # features/step_definitions/aliases_steps.rb:44
And New alias input field should be there # features/step_definitions/aliases_steps.rb:36
@ui_only
Scenario Outline: Cancel aliases # features/aliases.feature:26
When 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 <cancel> # features/step_definitions/header_steps.rb:14
Then Header edit button should be there # features/step_definitions/header_steps.rb:29
And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
And New alias input field should not be there # features/step_definitions/aliases_steps.rb:40
And Header save button should not be there # features/step_definitions/header_steps.rb:49
And Aliases list should be empty # features/step_definitions/aliases_steps.rb:60
Examples:
| cancel |
| click the header cancel button |
| press the ESC key in the new alias input field |
@modify_entity @save_aliases
Scenario Outline: Save alias # features/aliases.feature:42
When 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 <save> # features/step_definitions/header_steps.rb:18
Then Aliases list should not be empty # features/step_definitions/aliases_steps.rb:64
And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
And Header save button should not be there # features/step_definitions/header_steps.rb:49
And Header edit button should be there # features/step_definitions/header_steps.rb:29
And 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
Examples:
| save |
| click the header save button |
| press the RETURN key in the new alias input field |
@modify_entity @save_aliases
Scenario Outline: Save alias and reload # features/aliases.feature:59
When 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 <save> # features/step_definitions/header_steps.rb:18
And I reload the page # features/step_definitions/entity_steps.rb:114
Then Header edit button should be there # features/step_definitions/header_steps.rb:29
And 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
Examples:
| save |
| click the header save button |
| press the RETURN key in the new alias input field |
@modify_entity @save_aliases @smoke
Scenario: Save multiple aliases # features/aliases.feature:74
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "alias1", "alias2", "alias3" 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 Aliases list should not be empty # features/step_definitions/aliases_steps.rb:64
And There should be 3 aliases in the list # features/step_definitions/aliases_steps.rb:72
And List of aliases should be "alias1", "alias2", "alias3" # features/step_definitions/aliases_steps.rb:76
@modify_entity @save_aliases
Scenario: Remove alias # features/aliases.feature:83
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "alias1", "alias2" 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 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
Then List of aliases should be "alias2" # features/step_definitions/aliases_steps.rb:76
And There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
@modify_entity @save_aliases
Scenario: Remove all aliases # features/aliases.feature:94
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "alias1", "alias2" 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 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 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
Then Aliases list should be empty # features/step_definitions/aliases_steps.rb:60
And Header edit button should be there # features/step_definitions/header_steps.rb:29
@modify_entity @save_aliases
Scenario: Remove all aliases and reload # features/aliases.feature:106
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "alias1", "alias2" 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 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 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 reload the page # features/step_definitions/entity_steps.rb:114
Then Aliases list should be empty # features/step_definitions/aliases_steps.rb:60
And Header edit button should be there # features/step_definitions/header_steps.rb:29
@ui_only
Scenario: Edit aliases UI # features/aliases.feature:119
When 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
And I click the header edit button # features/step_definitions/header_steps.rb:10
Then New alias input field should be there # features/step_definitions/aliases_steps.rb:36
And First alias input field should contain alias123 # features/step_definitions/aliases_steps.rb:80
And Header save button should not be there # features/step_definitions/header_steps.rb:49
And Header cancel button should be there # features/step_definitions/header_steps.rb:37
@modify_entity @save_aliases
Scenario: Edit multiple aliases # features/aliases.feature:130
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "alias1", "alias2" 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 click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "alias3", "alias4" as new aliases # features/step_definitions/aliases_steps.rb:24
And I empty the first alias # features/step_definitions/aliases_steps.rb:9
And I change the first alias to alias5 # features/step_definitions/aliases_steps.rb:28
And I click the header save button # features/step_definitions/header_steps.rb:18
Then There should be 3 aliases in the list # features/step_definitions/aliases_steps.rb:72
And List of aliases should be "alias5", "alias3", "alias4" # features/step_definitions/aliases_steps.rb:76
@ui_only
Scenario: Duplicated aliases detection # features/aliases.feature:143
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "alias1", "alias2", "alias1" as new aliases # features/step_definitions/aliases_steps.rb:24
Then Duplicate alias input field should be there # features/step_definitions/aliases_steps.rb:52
And Header save button should be there # features/step_definitions/header_steps.rb:45
And Header cancel button should be there # features/step_definitions/header_steps.rb:37
@ui_only
Scenario: Duplicated aliases resolve # features/aliases.feature:151
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "alias1", "alias2", "alias1" as new aliases # features/step_definitions/aliases_steps.rb:24
And I empty the first alias # features/step_definitions/aliases_steps.rb:9
Then Duplicate alias input field should not be there # features/step_definitions/aliases_steps.rb:56
@modify_entity @save_aliases
Scenario: Save duplicated aliases # features/aliases.feature:158
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "alias1", "alias2", "alias1" 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 2 aliases in the list # features/step_definitions/aliases_steps.rb:72
And List of aliases should be "alias1", "alias2" # features/step_definitions/aliases_steps.rb:76
@modify_entity @save_aliases
Scenario Outline: Special inputs for aliases # features/aliases.feature:166
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter <alias> 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 <alias_expected> # features/step_definitions/aliases_steps.rb:76
Examples:
| alias | alias_expected |
| "0" | "0" |
| " norm a lize me " | "norm a lize me" |
| "<script>$('body').empty();</script>" | "<script>$('body').empty();</script>" |
@save_aliases
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
# Wikidata item tests
#
# License:: GNU GPL v2+
#
# feature the delete of an item
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Delete item
Scenario: Delete item # features/delete_item.feature:10
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
When I click the item delete button # features/step_definitions/delete_item_steps.rb:8
Then Page should be deleted # features/step_definitions/delete_item_steps.rb:12
# Wikidata UI tests
#
# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for item description tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Edit description
Background: # features/description.feature:11
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@ui_only
Scenario: Modify the description # features/description.feature:17
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
Then Header save button should be there # features/step_definitions/header_steps.rb:45
And Header cancel button should be there # features/step_definitions/header_steps.rb:37
And Header edit button should not be there # features/step_definitions/header_steps.rb:33
@ui_only
Scenario Outline: Cancel description # features/description.feature:25
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
And I <cancel> # features/step_definitions/header_steps.rb:14
Then Header edit button should be there # features/step_definitions/header_steps.rb:29
And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
And Original description should be displayed # features/step_definitions/description_steps.rb:51
Examples:
| cancel |
| click the header cancel button |
| press the ESC key in the description input field |
@save_description @modify_entity
Scenario Outline: Save description # features/description.feature:39
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
And I <save> # features/step_definitions/header_steps.rb:18
Then "MODIFIED DESCRIPTION" should be displayed as description # features/step_definitions/description_steps.rb:59
Examples:
| save |
| click the header save button |
| press the RETURN key in the description input field |
@save_description @modify_entity
Scenario Outline: Save description # features/description.feature:51
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
And I <save> # features/step_definitions/header_steps.rb:18
And I reload the page # features/step_definitions/entity_steps.rb:114
Then "MODIFIED DESCRIPTION" should be displayed as description # features/step_definitions/description_steps.rb:59
Examples:
| save |
| click the header save button |
| press the RETURN key in the description input field |
@save_description @modify_entity
Scenario Outline: Description with special input # features/description.feature:64
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter <description> as description # features/step_definitions/description_steps.rb:20
And I click the header save button # features/step_definitions/header_steps.rb:18
Then <expected_description> should be displayed as description # features/step_definitions/description_steps.rb:59
Examples:
| description | expected_description |
| "0" | "0" |
| " norm a lize me " | "norm a lize me" |
| "<script>$('body').empty();</script>" | "<script>$('body').empty();</script>" |
| "{{Template:blabla}}" | "{{Template:blabla}}" |
@save_description
Scenario: Description with a too long value # features/description.feature:78
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter a long string as description # features/step_definitions/description_steps.rb:27
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
expected #<TrueClass:20> => true
got #<FalseClass:0> => false
Compared using equal?, which compares object identity,
but expected and actual are not the same object. Use
`expect(actual).to eq(expected)` if you don't care about
object identity in this example.
(RSpec::Expectations::ExpectationNotMetError)
features/description.feature:82:in `Then An error message should be displayed'
# Wikidata item tests
#
# License:: GNU GPL v2+
#
# feature the functionality of the edit tab function
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Edit tab
Scenario: Edit tab # features/edit_tab.feature:10
Given I am on an item page # features/step_definitions/entity_steps.rb:17
Then the edit-tab button should not be visible # features/step_definitions/edit_tab_steps.rb:8
# Wikidata UI tests
#
# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for item description tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Empty label and description behaviour
Background: # features/empty_label_and_description.feature:11
Given I am on an item page with empty label and description # features/step_definitions/entity_steps.rb:95
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@ui_only
Scenario: Description UI is shown correctly when description is empty # features/empty_label_and_description.feature:17
Then Description input element should not be there # features/step_definitions/description_steps.rb:35
And Header edit button should be there # features/step_definitions/header_steps.rb:29
And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
And Header save button should not be there # features/step_definitions/header_steps.rb:49
@ui_only
Scenario: Description UI is shown correctly when description is empty # features/empty_label_and_description.feature:24
When I click the header edit button # features/step_definitions/header_steps.rb:10
Then Description input element should be there # features/step_definitions/description_steps.rb:31
And Description input element should be empty # features/step_definitions/description_steps.rb:43
And Header edit button should not be there # features/step_definitions/header_steps.rb:33
And Header cancel button should be there # features/step_definitions/header_steps.rb:37
And Header save button should not be there # features/step_definitions/header_steps.rb:49
@ui_only
Scenario: Description UI behaves correctly when description is empty # features/empty_label_and_description.feature:33
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "NEW DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
Then Header cancel button should be there # features/step_definitions/header_steps.rb:37
And Header save button should be there # features/step_definitions/header_steps.rb:45
@ui_only @smoke
Scenario: Description UI behaves correctly when description is empty # features/empty_label_and_description.feature:40
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "NEW DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
And I click the header cancel button # features/step_definitions/header_steps.rb:14
Then Header cancel button should not be there # features/step_definitions/header_steps.rb:41
And Header edit button should be there # features/step_definitions/header_steps.rb:29
And Header save button should not be there # features/step_definitions/header_steps.rb:49
And Description input element should not be there # features/step_definitions/description_steps.rb:35
@ui_only
Scenario: Label UI is shown correctly when label is empty # features/empty_label_and_description.feature:50
Then Label input element should not be there # features/step_definitions/label_steps.rb:40
And Header edit button should be there # features/step_definitions/header_steps.rb:29
And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
And Header save button should not be there # features/step_definitions/header_steps.rb:49
@ui_only
Scenario: Label UI is shown correctly when label is empty # features/empty_label_and_description.feature:57
When I click the header edit button # features/step_definitions/header_steps.rb:10
Then Label input element should be there # features/step_definitions/label_steps.rb:36
And Label input element should be empty # features/step_definitions/label_steps.rb:48
And Header edit button should not be there # features/step_definitions/header_steps.rb:33
And Header cancel button should be there # features/step_definitions/header_steps.rb:37
And Header save button should not be there # features/step_definitions/header_steps.rb:49
@ui_only
Scenario: Label UI behaves correctly when label is empty # features/empty_label_and_description.feature:66
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "NEW LABEL" as label # features/step_definitions/label_steps.rb:20
Then Header cancel button should be there # features/step_definitions/header_steps.rb:37
And Header save button should be there # features/step_definitions/header_steps.rb:45
@ui_only
Scenario: Label UI behaves correctly when label is empty # features/empty_label_and_description.feature:73
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "NEW LABEL" as label # features/step_definitions/label_steps.rb:20
And I click the header cancel button # features/step_definitions/header_steps.rb:14
Then Header cancel button should not be there # features/step_definitions/header_steps.rb:41
And Header edit button should be there # features/step_definitions/header_steps.rb:29
And Header save button should not be there # features/step_definitions/header_steps.rb:49
And Label input element should not be there # features/step_definitions/label_steps.rb:40
# Wikidata UI tests
#
# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for item header tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Use header
Background: # features/header.feature:11
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@ui_only
Scenario: Header UI has all required elements # features/header.feature:17
Then Original label should be displayed # features/step_definitions/label_steps.rb:56
And Original description should be displayed # features/step_definitions/description_steps.rb:51
And Header edit button should be there # features/step_definitions/header_steps.rb:29
And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
And Header save button should not be there # features/step_definitions/header_steps.rb:49
@ui_only
Scenario: Click edit button # features/header.feature:25
When 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
And Header save button should not be there # features/step_definitions/header_steps.rb:49
And Header cancel button should be there # features/step_definitions/header_steps.rb:37
And Label input element should be there # features/step_definitions/label_steps.rb:36
And Label input element should contain original label # features/step_definitions/label_steps.rb:44
And Description input element should be there # features/step_definitions/description_steps.rb:31
And Description input element should contain original description # features/step_definitions/description_steps.rb:39
And New alias input field should be there # features/step_definitions/aliases_steps.rb:36
@ui_only
Scenario: Modify label, description and aliases # features/header.feature:37
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter random string as label # features/step_definitions/label_steps.rb:27
And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
Then Header save button should be there # features/step_definitions/header_steps.rb:45
And Header cancel button should be there # features/step_definitions/header_steps.rb:37
And Header edit button should not be there # features/step_definitions/header_steps.rb:33
And Modified alias input field should be there # features/step_definitions/aliases_steps.rb:44
And New alias input field should be there # features/step_definitions/aliases_steps.rb:36
@ui_only
Scenario Outline: Cancel label, description and aliases # features/header.feature:49
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter random string as label # features/step_definitions/label_steps.rb:27
And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
And I <cancel> # features/step_definitions/header_steps.rb:14
Then Header edit button should be there # features/step_definitions/header_steps.rb:29
And Header save button should not be there # features/step_definitions/header_steps.rb:49
And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
And Original description should be displayed # features/step_definitions/description_steps.rb:51
And Original label should be displayed # features/step_definitions/label_steps.rb:56
And Aliases list should be empty # features/step_definitions/aliases_steps.rb:60
Examples:
| cancel |
| click the header cancel button |
| press the ESC key in the label input field |
@modify_entity @save_description @save_aliases @save_label
Scenario Outline: Save label, description and aliases # features/header.feature:69
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter random string as label # features/step_definitions/label_steps.rb:27
And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
And I <save> # features/step_definitions/header_steps.rb:18
Then Header edit button should be there # features/step_definitions/header_steps.rb:29
And Header save button should not be there # features/step_definitions/header_steps.rb:49
And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
And random string should be displayed as label # features/step_definitions/label_steps.rb:86
And "MODIFIED DESCRIPTION" should be displayed as description # features/step_definitions/description_steps.rb:59
And 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
Examples:
| save |
| click the header save button |
| press the RETURN key in the description input field |
@bugfix @modify_entity
Scenario: EntityTermView bugfix # features/header.feature:89
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter random string as label # features/step_definitions/label_steps.rb:27
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
Then random string should be displayed as label # features/step_definitions/label_steps.rb:86
And random string should be displayed as English label in the EntityTermView box # features/step_definitions/label_steps.rb:74
# Wikidata UI tests
#
# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for item label tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Edit label
Background: # features/label.feature:11
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@ui_only
Scenario: Modify the label # features/label.feature:17
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "MODIFIED LABEL" as label # features/step_definitions/label_steps.rb:20
Then Header save button should be there # features/step_definitions/header_steps.rb:45
And Header cancel button should be there # features/step_definitions/header_steps.rb:37
And Header edit button should not be there # features/step_definitions/header_steps.rb:33
@ui_only
Scenario Outline: Cancel label # features/label.feature:25
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "MODIFIED LABEL" as label # features/step_definitions/label_steps.rb:20
And I <cancel> # features/step_definitions/header_steps.rb:14
Then Original label should be displayed # features/step_definitions/label_steps.rb:56
And Header edit button should be there # features/step_definitions/header_steps.rb:29
And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
Examples:
| cancel |
| click the header cancel button |
| press the ESC key in the label input field |
@modify_entity @save_label @smoke
Scenario Outline: Save label # features/label.feature:39
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "MODIFIED LABEL" as label # features/step_definitions/label_steps.rb:20
And I <save> # features/step_definitions/header_steps.rb:18
Then Header edit button should be there # features/step_definitions/header_steps.rb:29
And "MODIFIED LABEL" should be displayed as label # features/step_definitions/label_steps.rb:78
Examples:
| save |
| click the header save button |
| press the RETURN key in the label input field |
@modify_entity @save_label
Scenario Outline: Save label and reload # features/label.feature:52
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter "MODIFIED LABEL" as label # features/step_definitions/label_steps.rb:20
And I <save> # features/step_definitions/header_steps.rb:18
And I reload the page # features/step_definitions/entity_steps.rb:114
Then Header edit button should be there # features/step_definitions/header_steps.rb:29
And "MODIFIED LABEL" should be displayed as label # features/step_definitions/label_steps.rb:78
Examples:
| save |
| click the header save button |
| press the RETURN key in the label input field |
@modify_entity @save_label
Scenario Outline: Label with special input # features/label.feature:66
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter <label> as label # features/step_definitions/label_steps.rb:20
And I click the header save button # features/step_definitions/header_steps.rb:18
Then Header edit button should be there # features/step_definitions/header_steps.rb:29
And <expected_label> should be displayed as label # features/step_definitions/label_steps.rb:78
Examples:
| label | expected_label |
| "0" | "0" |
| " normalize me " | "normalize me" |
| "<script>$('body').empty();</script>" | "<script>$('body').empty();</script>" |
| "{{Template:blabla}}" | "{{Template:blabla}}" |
@save_label
Scenario: Label with a too long value # features/label.feature:81
When I click the header edit button # features/step_definitions/header_steps.rb:10
And I enter a long string as label # features/step_definitions/label_steps.rb:32
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
# Wikidata item tests
#
# License:: GNU GPL v2+
#
# feature the functionality of a non existing item page
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Non existing item
Scenario: Edit tab # features/non_existing_item.feature:10
Given I am on an non existing item page # features/step_definitions/non_existing_item_steps.rb:8
Then check if this page behaves correctly # features/step_definitions/non_existing_item_steps.rb:12
# Wikidata UI tests
#
# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for references
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Adding references to statements
Background: # features/reference.feature:11
Given I have an item to test # features/step_definitions/entity_steps.rb:22
And I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
And I have statements with the following properties and values: # features/step_definitions/statement_steps.rb:9
| stringprop | reference test |
And I am on the page of the item to test # features/step_definitions/entity_steps.rb:45
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@ui_only
Scenario: Reference UI has all required elements # features/reference.feature:22
When I click the statement edit button # features/step_definitions/statement_steps.rb:23
Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Reference counter should be there # features/step_definitions/reference_steps.rb:90
And Reference counter should show 0 # features/step_definitions/reference_steps.rb:94
@ui_only
Scenario: References toggler # features/reference.feature:30
When I click the toggle references link of statement 1 # features/step_definitions/reference_steps.rb:31
Then Reference add button should not be there # features/step_definitions/reference_steps.rb:42
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Reference counter should be there # features/step_definitions/reference_steps.rb:90
And Reference counter should show 0 # features/step_definitions/reference_steps.rb:94
@ui_only
Scenario: Click the Add Reference button # features/reference.feature:38
When I click the statement edit button # features/step_definitions/statement_steps.rb:23
And I click the reference add button # features/step_definitions/reference_steps.rb:9
Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
And Reference add snak button should be there # features/step_definitions/reference_steps.rb:77
And Reference remove snak button should be disabled # features/step_definitions/reference_steps.rb:72
And Reference remove button should be there # features/step_definitions/reference_steps.rb:51
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And Snak entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:17
And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
@ui_only
Scenario Outline: Cancel reference # features/reference.feature:51
When I click the statement edit button # features/step_definitions/statement_steps.rb:23
And I click the reference add button # features/step_definitions/reference_steps.rb:9
And I <cancel> # features/step_definitions/statement_steps.rb:27
And I click the statement edit button # features/step_definitions/statement_steps.rb:23
Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
And Reference counter should be there # features/step_definitions/reference_steps.rb:90
And Reference counter should show 0 # features/step_definitions/reference_steps.rb:94
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Reference remove button should not be there # features/step_definitions/reference_steps.rb:55
And Reference add snak button should not be there # features/step_definitions/reference_steps.rb:81
And Reference remove snak button should not be there # features/step_definitions/reference_steps.rb:68
Examples:
| cancel |
| click the statement cancel button |
| press the ESC key in the snak entity selector input field |
@ui_only
Scenario: Select a property # features/reference.feature:71
When I click the statement edit button # features/step_definitions/statement_steps.rb:23
And I click the reference add button # features/step_definitions/reference_steps.rb:9
And I select the snak property stringprop # features/step_definitions/statement_steps.rb:46
Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
And Reference add snak button should be there # features/step_definitions/reference_steps.rb:77
And Reference remove snak button should be disabled # features/step_definitions/reference_steps.rb:72
And Reference remove button should be there # features/step_definitions/reference_steps.rb:51
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And Snak entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:17
And Snak value input element should be there # features/step_definitions/statement_steps.rb:216
@ui_only
Scenario: Select a property and enter a value # features/reference.feature:85
When I click the statement edit button # features/step_definitions/statement_steps.rb:23
And I click the reference add button # features/step_definitions/reference_steps.rb:9
And I select the snak property stringprop # features/step_definitions/statement_steps.rb:46
And I enter something as string snak value # features/step_definitions/statement_steps.rb:94
Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
And Reference remove snak button should be disabled # features/step_definitions/reference_steps.rb:72
And Reference remove button should be there # features/step_definitions/reference_steps.rb:51
And Statement save button should be there # features/step_definitions/statement_steps.rb:185
And Reference add snak button should be there # features/step_definitions/reference_steps.rb:77
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And Snak entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:17
And Snak value input element should be there # features/step_definitions/statement_steps.rb:216
@modify_entity @repo_login
Scenario Outline: Add reference with one snak # features/reference.feature:100
When I click the statement edit button # features/step_definitions/statement_steps.rb:23
And I click the reference add button # features/step_definitions/reference_steps.rb:9
And I select the snak property stringprop # features/step_definitions/statement_steps.rb:46
And I enter test as string snak value # features/step_definitions/statement_steps.rb:94
And I <save> # features/step_definitions/statement_steps.rb:31
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Reference add snak button should not be there # features/step_definitions/reference_steps.rb:81
And Reference remove snak button should not be there # features/step_definitions/reference_steps.rb:68
And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
And Property of snak 1 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
And Property of snak 1 of reference 1 should be label of stringprop # features/step_definitions/reference_steps.rb:98
And Value of snak 1 of reference 1 should be test # features/step_definitions/reference_steps.rb:110
And Reference counter should show 1 # features/step_definitions/reference_steps.rb:94
Examples:
| save |
| click the statement save button |
| press the RETURN key in the snak value input field |
@modify_entity @repo_login
Scenario: Add reference with multiple snaks # features/reference.feature:122
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop1 | string |
| stringprop2 | string |
| stringprop3 | string |
And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
| stringprop1 | test1 |
| stringprop2 | test2 |
| stringprop3 | test3 |
And I reload the page # features/step_definitions/entity_steps.rb:114
And I click the toggle references link of statement 1 # features/step_definitions/reference_steps.rb:31
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Reference add snak button should not be there # features/step_definitions/reference_steps.rb:81
And Reference remove snak button should not be there # features/step_definitions/reference_steps.rb:68
And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
And Property of snak 1 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
And Property of snak 2 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
And Property of snak 3 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
And Property of snak 1 of reference 1 should be label of stringprop1 # features/step_definitions/reference_steps.rb:98
And Property of snak 2 of reference 1 should be label of stringprop2 # features/step_definitions/reference_steps.rb:98
And Property of snak 3 of reference 1 should be label of stringprop3 # features/step_definitions/reference_steps.rb:98
And Value of snak 1 of reference 1 should be test1 # features/step_definitions/reference_steps.rb:110
And Value of snak 2 of reference 1 should be test2 # features/step_definitions/reference_steps.rb:110
And Value of snak 3 of reference 1 should be test3 # features/step_definitions/reference_steps.rb:110
And Reference counter should show 1 # features/step_definitions/reference_steps.rb:94
@modify_entity @repo_login
Scenario: Check UI elements when editing reference # features/reference.feature:151
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
| stringprop | test |
And I click the statement edit button # features/step_definitions/statement_steps.rb:23
Then Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And Reference remove button should be there # features/step_definitions/reference_steps.rb:51
And Reference remove snak button should be disabled # features/step_definitions/reference_steps.rb:72
And Reference add snak button should be there # features/step_definitions/reference_steps.rb:77
And Reference add button should be there # features/step_definitions/reference_steps.rb:38
And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
And Snak value input element should be there # features/step_definitions/statement_steps.rb:216
@modify_entity @repo_login
Scenario: Edit reference with one snak # features/reference.feature:167
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
| stringprop | test |
And I click the statement edit button # features/step_definitions/statement_steps.rb:23
And I enter modified as string snak value # features/step_definitions/statement_steps.rb:94
And I click the statement save button # features/step_definitions/statement_steps.rb:31
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Reference add snak button should not be there # features/step_definitions/reference_steps.rb:81
And Reference remove snak button should not be there # features/step_definitions/reference_steps.rb:68
And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
And Property of snak 1 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
And Property of snak 1 of reference 1 should be label of stringprop # features/step_definitions/reference_steps.rb:98
And Value of snak 1 of reference 1 should be modified # features/step_definitions/reference_steps.rb:110
And Reference counter should show 1 # features/step_definitions/reference_steps.rb:94
@modify_entity @repo_login
Scenario: Remove complete reference # features/reference.feature:187
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
| stringprop | test |
And I click the statement edit button # features/step_definitions/statement_steps.rb:23
And I click the reference remove button # features/step_definitions/reference_steps.rb:13
Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And Statement save button should be there # features/step_definitions/statement_steps.rb:185
And Reference counter should be there # features/step_definitions/reference_steps.rb:90
And Reference counter should show 0 # features/step_definitions/reference_steps.rb:94
And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
And Property of snak 1 of reference 1 should not be there # features/step_definitions/reference_steps.rb:102
And Value of snak 1 of reference 1 should not be there # features/step_definitions/reference_steps.rb:114
@modify_entity @repo_login
Scenario: Remove reference snak # features/reference.feature:205
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop1 | string |
| stringprop2 | string |
And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
| stringprop1 | test1 |
| stringprop2 | test2 |
And I click the statement edit button # features/step_definitions/statement_steps.rb:23
And I remove reference snak 1 # features/step_definitions/reference_steps.rb:21
And I click the statement save button # features/step_definitions/statement_steps.rb:31
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Reference counter should be there # features/step_definitions/reference_steps.rb:90
And Reference counter should show 1 # features/step_definitions/reference_steps.rb:94
And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
And Property of snak 1 of reference 1 should be label of stringprop2 # features/step_definitions/reference_steps.rb:98
And Value of snak 1 of reference 1 should be test2 # features/step_definitions/reference_steps.rb:110
And Property of snak 2 of reference 1 should not be there # features/step_definitions/reference_steps.rb:102
And Value of snak 2 of reference 1 should not be there # features/step_definitions/reference_steps.rb:114
# Wikidata UI tests
#
# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for item sitelinks tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Edit sitelinks
Background: # features/sitelinks.feature:11
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@ui_only
Scenario: Sitelink UI has all required elements # features/sitelinks.feature:17
Then wikipedia sitelink section should be there # features/step_definitions/sitelinks_steps.rb:67
And Sitelink heading should be there # features/step_definitions/sitelinks_steps.rb:71
And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
And Sitelink counter should be there # features/step_definitions/sitelinks_steps.rb:126
And There should be 0 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
@ui_only
Scenario: Click edit button # features/sitelinks.feature:25
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
Examples:
| save |
| click the sitelink save button |
expected: == 1
got: 0 (RSpec::Expectations::ExpectationNotMetError)
features/sitelinks.feature:135:in `Then There should be 1 sitelinks in the list'
| press the RETURN key in the pagename input field |
expected: == 1
got: 0 (RSpec::Expectations::ExpectationNotMetError)
features/sitelinks.feature:135:in `Then There should be 1 sitelinks in the list'
@modify_entity @save_sitelink
Scenario: Edit sitelink # features/sitelinks.feature:143
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
@modify_entity @save_sitelink
Scenario Outline: Add sitelink # features/sitelinks.feature:159
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:'
@modify_entity @save_sitelink
Scenario: Add multiple sitelinks # features/sitelinks.feature:183
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
@modify_entity @save_sitelink
Scenario: Remove multiple sitelinks # features/sitelinks.feature:195
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)
# License:: GNU GPL v2+
#
# feature definition for item sitelinks tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Add badges to sitelinks
Background: # features/sitelinks_badge.feature:11
Given I have at least 2 badges to test # features/step_definitions/badges_steps.rb:1
expected: >= 2
got: 0 (RSpec::Expectations::ExpectationNotMetError)
features/sitelinks_badge.feature:12:in `Given I have at least 2 badges to test'
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@ui_only
Scenario: Sitelink badge UI is there # features/sitelinks_badge.feature:18
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
Then Sitelink pagename input field should be there # features/step_definitions/sitelinks_steps.rb:150
And Sitelink badge selector should be there # features/step_definitions/badges_steps.rb:18
And Sitelink empty badge selector should be there # features/step_definitions/badges_steps.rb:32
@ui_only
Scenario: Sitelink badge UI shows all available badges # features/sitelinks_badge.feature:26
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 click the empty badge selector # features/step_definitions/badges_steps.rb:6
Then Sitelink pagename input field should be there # features/step_definitions/sitelinks_steps.rb:150
And Sitelink badge selector menu should be there # features/step_definitions/badges_steps.rb:22
And Sitelink badge selector menu should show available badges # features/step_definitions/badges_steps.rb:26
@ui_only
Scenario: Choose a badge # features/sitelinks_badge.feature:35
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 click the empty badge selector # features/step_definitions/badges_steps.rb:6
And I click the 1. badge selector id item # features/step_definitions/badges_steps.rb:10
Then Sitelink empty badge selector should not be there # features/step_definitions/badges_steps.rb:36
And The 1. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
@ui_only
Scenario: Choose multiple badges # features/sitelinks_badge.feature:44
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 click the empty badge selector # features/step_definitions/badges_steps.rb:6
And I click the 1. badge selector id item # features/step_definitions/badges_steps.rb:10
And I click the 2. badge selector id item # features/step_definitions/badges_steps.rb:10
Then Sitelink empty badge selector should not be there # features/step_definitions/badges_steps.rb:36
And The 1. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
And The 2. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
@modify_entity @save_sitelink
Scenario: Save a badge # features/sitelinks_badge.feature:55
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 click the empty badge selector # features/step_definitions/badges_steps.rb:6
And I click the 1. badge selector id item # features/step_definitions/badges_steps.rb:10
And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
Then Sitelink empty badge selector should not be there # features/step_definitions/badges_steps.rb:36
And The 1. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
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 edit button should be there # features/step_definitions/sitelinks_steps.rb:92
@modify_entity @save_sitelink
Scenario: Save a badge and reload # features/sitelinks_badge.feature:71
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 click the empty badge selector # features/step_definitions/badges_steps.rb:6
And I click the 1. badge selector id item # features/step_definitions/badges_steps.rb:10
And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
And I reload the page # features/step_definitions/entity_steps.rb:114
Then Sitelink empty badge selector should not be there # features/step_definitions/badges_steps.rb:36
And The 1. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
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 edit button should be there # features/step_definitions/sitelinks_steps.rb:92
# Wikidata UI tests
#
# Author:: Thiemo Mättig
# License:: GNU GPL v2+
#
# feature definition for the Special:SetLabel page tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @special_pages @wikidata.beta.wmflabs.org
Feature: Special:SetLabel page
@ui_only
Scenario: Special:SetLabel page has all required elements # features/special_set_label.feature:12
Given I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
Then ID input field should be there # features/step_definitions/special_modify_entity_steps.rb:30
And Language input field should be there # features/step_definitions/special_modify_term_steps.rb:10
And Label input field should be there # features/step_definitions/special_set_label_steps.rb:21
And Set label button should be there # features/step_definitions/special_set_label_steps.rb:25
@ui_only
Scenario: Logged in user does not get warning # features/special_set_label.feature:20
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
Then Anonymous edit warning should not be there # features/step_definitions/special_modify_entity_steps.rb:22
@ui_only
Scenario: Anonymous user gets warning # features/special_set_label.feature:26
Given I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
Then Anonymous edit warning should be there # features/step_definitions/special_modify_entity_steps.rb:18
Scenario: Add a label # features/special_set_label.feature:31
Given I have the following empty items: # features/step_definitions/entity_steps.rb:83
| item1 |
And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
And I enter the ID of item item1 into the ID input field # features/step_definitions/special_modify_entity_steps.rb:14
And I enter en into the language input field # features/step_definitions/special_modify_term_steps.rb:14
And I enter Something into the label input field # features/step_definitions/special_set_label_steps.rb:13
And I press the set label button # features/step_definitions/special_set_label_steps.rb:17
And I am on the page of item item1 # features/step_definitions/entity_steps.rb:49
Then Something should be displayed as label having the ID of item1 # features/step_definitions/label_steps.rb:90
@smoke
Scenario: Edit an existing label # features/special_set_label.feature:43
Given I have the following items: # features/step_definitions/entity_steps.rb:79
| item1 |
And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
And I enter the ID of item item1 into the ID input field # features/step_definitions/special_modify_entity_steps.rb:14
And I enter en into the language input field # features/step_definitions/special_modify_term_steps.rb:14
And I enter Something different into the label input field # features/step_definitions/special_set_label_steps.rb:13
And I press the set label button # features/step_definitions/special_set_label_steps.rb:17
And I am on the page of item item1 # features/step_definitions/entity_steps.rb:49
Then Something different should be displayed as label having the ID of item1 # features/step_definitions/label_steps.rb:90
Scenario: Edit using an invalid language fails # features/special_set_label.feature:54
Given I have the following items: # features/step_definitions/entity_steps.rb:79
| item1 |
And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
And I enter the ID of item item1 into the ID input field # features/step_definitions/special_modify_entity_steps.rb:14
And I enter Something invalid into the language input field # features/step_definitions/special_modify_term_steps.rb:14
And I enter Something new into the label input field # features/step_definitions/special_set_label_steps.rb:13
And I press the set label button # features/step_definitions/special_set_label_steps.rb:17
Then An error message should be displayed on the special page # features/step_definitions/special_modify_entity_steps.rb:26
Scenario: Edit using an invalid ID fails # features/special_set_label.feature:64
When I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
And I enter something invalid in the ID input field # features/step_definitions/special_modify_entity_steps.rb:10
And I enter en into the language input field # features/step_definitions/special_modify_term_steps.rb:14
And I enter Something new into the label input field # features/step_definitions/special_set_label_steps.rb:13
And I press the set label button # features/step_definitions/special_set_label_steps.rb:17
Then An error message should be displayed on the special page # features/step_definitions/special_modify_entity_steps.rb:26
# Wikidata UI tests
#
# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for statements tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Creating statements
Background: # features/statement.feature:11
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@ui_only
Scenario: Statement UI has all required elements # features/statement.feature:17
Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
And Rank selector for claim 1 in group 1 should not be there # features/step_definitions/rank_selector_steps.rb:17
And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
@ui_only
Scenario: Click the add button # features/statement.feature:27
When I click the statement add button # features/step_definitions/statement_steps.rb:19
Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
And Statement help field should be there # features/step_definitions/statement_steps.rb:165
And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
@ui_only
Scenario Outline: Cancel statement # features/statement.feature:39
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I <cancel> # features/step_definitions/statement_steps.rb:27
Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
And Rank selector for claim 1 in group 1 should not be there # features/step_definitions/rank_selector_steps.rb:17
And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
Examples:
| cancel |
| click the statement cancel button |
| press the ESC key in the claim entity selector input field |
timed out after 10 seconds, Element still visible after 10 seconds (Watir::Wait::TimeoutError)
features/statement.feature:43:in `And Statement cancel button should not be there'
@repo_login @ui_only
Scenario: Select a property # features/statement.feature:56
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
And Claim value input element should be there # features/step_definitions/statement_steps.rb:208
And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
And Snaktype selector for claim 1 in group 1 should be there # features/step_definitions/snaktype_selector_steps.rb:21
@repo_login @smoke @ui_only
Scenario: Select a property and enter a statement value # features/statement.feature:70
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And Statement save button should be there # features/step_definitions/statement_steps.rb:185
And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
And Claim value input element should be there # features/step_definitions/statement_steps.rb:208
And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
And Snaktype selector for claim 1 in group 1 should be there # features/step_definitions/snaktype_selector_steps.rb:21
@repo_login @ui_only
Scenario Outline: Cancel statement after selecting a property # features/statement.feature:85
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
And I <cancel> # features/step_definitions/statement_steps.rb:27
Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
And Rank selector for claim 1 in group 1 should not be there # features/step_definitions/rank_selector_steps.rb:17
And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
Examples:
| cancel |
| click the statement cancel button |
| press the ESC key in the claim value input field |
@repo_login @ui_only
Scenario: Select a property, enter a statement value and clear the property # features/statement.feature:106
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
And I enter invalid in the claim property input field # features/step_definitions/statement_steps.rb:53
Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
# Wikidata UI tests
#
# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for geo type statements tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Using geo properties in statements
Background: # features/statements_geo.feature:11
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| geoprop | globe-coordinate |
And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
@ui_only
Scenario: Geo UI should work properly # features/statements_geo.feature:17
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
And I enter 1,1 in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the InputExtender toggler link # features/step_definitions/statement_steps.rb:256
Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And InputExtender preview should be there # features/step_definitions/statement_steps.rb:280
And Geo precision chooser should be there # features/step_definitions/statement_steps.rb:288
@ui_only
Scenario Outline: Check geo UI for invalid values # features/statements_geo.feature:31
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
Examples:
| value |
| astring |
| 1 11 199 9 |
| 1 |
| 1:1 |
@ui_only
Scenario Outline: Geo parser in the preview and precision detection should work properly # features/statements_geo.feature:49
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the InputExtender toggler link # features/step_definitions/statement_steps.rb:256
Then <preview> should be displayed in the InputExtender preview # features/step_definitions/statement_steps.rb:260
And <precision> should be the geo precision setting # features/step_definitions/statement_steps.rb:292
And Statement save button should be there # features/step_definitions/statement_steps.rb:185
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
Examples:
| value | preview | precision |
| 1 1 | 1°N, 1°E | ±1° |
| 1 S 1 W | 1°S, 1°W | ±1° |
| 52°29'53"N, 13°22'51"E | 52°29'53"N, 13°22'51"E | to an arcsecond |
| 52°29'N, 13°22'E | 52°29'N, 13°22'E | to an arcminute |
| 42.1538, 8.5731 | 42°9'13.7"N, 8°34'23.2"E | ±0.0001° |
| 42° 09.231' N 008° 34.386' E | 42°9'13.86"N, 8°34'23.16"E | to 1/100 of an arcsecond |
@repo_login @modify_entity
Scenario: Adding a statement of type geo # features/statements_geo.feature:72
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
And I enter 52°29'53.9"N, 13°22'51.8"E in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the statement save button # features/step_definitions/statement_steps.rb:31
Then Statement string value of claim 1 in group 1 should be 52°29'53.9"N, 13°22'51.8"E # features/step_definitions/statement_steps.rb:228
And Statement name of group 1 should be the label of geoprop # features/step_definitions/statement_steps.rb:224
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
@repo_login @modify_entity
Scenario: Adding a statement of type geo and reload page # features/statements_geo.feature:88
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
And I enter 52°29'53.9"N, 13°22'51.8"E in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the statement save button # features/step_definitions/statement_steps.rb:31
And I reload the page # features/step_definitions/entity_steps.rb:114
Then Statement string value of claim 1 in group 1 should be 52°29'53.9"N, 13°22'51.8"E # features/step_definitions/statement_steps.rb:228
And Statement name of group 1 should be the label of geoprop # features/step_definitions/statement_steps.rb:224
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
# Wikidata UI tests
#
# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for item type statements tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Creating statements of type item
Background: # features/statements_item.feature:11
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@modify_entity @repo_login
Scenario Outline: Adding a statement of type item # features/statements_item.feature:17
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| itemprop | wikibase-item |
Given I have the following items: # features/step_definitions/entity_steps.rb:79
| item1 |
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property itemprop # features/step_definitions/statement_steps.rb:39
And I enter the label of item <item> as claim value # features/step_definitions/statement_steps.rb:102
And I <save> # features/step_definitions/statement_steps.rb:31
Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Statement name of group 1 should be the label of itemprop # features/step_definitions/statement_steps.rb:224
And Statement value of claim 1 in group 1 should be the label of item <item> # features/step_definitions/statement_steps.rb:232
Examples:
| item | save |
| item1 | click the statement save button |
@ui_only @repo_login
Scenario: Select a property, use entity selector # features/statements_item.feature:40
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| itemprop | wikibase-item |
And I have 3 items beginning with "q" # features/step_definitions/entity_steps.rb:34
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property itemprop # features/step_definitions/statement_steps.rb:39
And I enter q in the claim value input field # features/step_definitions/statement_steps.rb:61
And I press the ARROWDOWN key in the claim value input field # features/step_definitions/statement_steps.rb:122
And I press the ARROWDOWN key in the claim value input field # features/step_definitions/statement_steps.rb:122
And I press the RETURN key in the claim value input field # features/step_definitions/statement_steps.rb:130
And I memorize the value of the the claim value input field # features/step_definitions/statement_steps.rb:153
And I press the RETURN key in the claim value input field # features/step_definitions/statement_steps.rb:130
Then Statement value of claim 1 in group 1 should be what I memorized # features/step_definitions/statement_steps.rb:236
# Wikidata UI tests
#
# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for monolingual type statements tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Using monolingual properties in statements
Background: # features/statements_monolingual.feature:11
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| monolingprop | monolingualtext |
And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
@ui_only
Scenario: Monolingual UI should work properly # features/statements_monolingual.feature:17
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And InputExtender input should be there # features/step_definitions/statement_steps.rb:284
@ui_only
Scenario: Check monolingual for invalid language values # features/statements_monolingual.feature:29
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
And I enter definitelynotalanguage in the InputExtender input field # features/step_definitions/statement_steps.rb:69
And I click the statement save button # features/step_definitions/statement_steps.rb:31
Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
@repo_login @modify_entity
Scenario Outline: Adding a statement of type monolingual # features/statements_monolingual.feature:42
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
And I enter <language> in the InputExtender input field # features/step_definitions/statement_steps.rb:69
And I click the InputExtender dropdown first element # features/step_definitions/statement_steps.rb:89
And I click the statement save button # features/step_definitions/statement_steps.rb:31
Then Statement string value of claim 1 in group 1 should be something (<language>) # features/step_definitions/statement_steps.rb:228
And Statement name of group 1 should be the label of monolingprop # features/step_definitions/statement_steps.rb:224
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
Examples:
| language |
| English |
timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
features/statements_monolingual.feature:50:in `And I click the InputExtender dropdown first element'
| German |
timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
features/statements_monolingual.feature:50:in `And I click the InputExtender dropdown first element'
Scenario Outline: Adding a statement of type monolingual and use keyboard to select language # features/statements_monolingual.feature:63
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
And I enter <language> in the InputExtender input field # features/step_definitions/statement_steps.rb:69
And I press the ARROWDOWN key in the InputExtender input field # features/step_definitions/statement_steps.rb:77
And I press the RETURN key in the InputExtender input field # features/step_definitions/statement_steps.rb:81
And I click the statement save button # features/step_definitions/statement_steps.rb:31
Then Statement string value of claim 1 in group 1 should be something (<language>) # features/step_definitions/statement_steps.rb:228
And Statement name of group 1 should be the label of monolingprop # features/step_definitions/statement_steps.rb:224
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
Examples:
| language |
| English |
expected: "something (English)"
got: ""
(compared using ==)
(RSpec::Expectations::ExpectationNotMetError)
features/statements_monolingual.feature:73:in `Then Statement string value of claim 1 in group 1 should be something (<language>)'
| German |
expected: "something (German)"
got: ""
(compared using ==)
(RSpec::Expectations::ExpectationNotMetError)
features/statements_monolingual.feature:73:in `Then Statement string value of claim 1 in group 1 should be something (<language>)'
@repo_login @modify_entity
Scenario: Adding a statement of type monolingual and reload page # features/statements_monolingual.feature:85
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
And I enter English in the InputExtender input field # features/step_definitions/statement_steps.rb:69
And I click the InputExtender dropdown first element # features/step_definitions/statement_steps.rb:89
timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
features/statements_monolingual.feature:93:in `And I click the InputExtender dropdown first element'
And I click the statement save button # features/step_definitions/statement_steps.rb:31
And I reload the page # features/step_definitions/entity_steps.rb:114
Then Statement string value of claim 1 in group 1 should be something (English) # features/step_definitions/statement_steps.rb:228
And Statement name of group 1 should be the label of monolingprop # features/step_definitions/statement_steps.rb:224
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
# Wikidata UI tests
#
# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for quantity type statements tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Using quantity properties in statements
Background: # features/statements_quantity.feature:11
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| quantprop | quantity |
And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
@ui_only
Scenario: Quantity UI should work properly # features/statements_quantity.feature:17
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property quantprop # features/step_definitions/statement_steps.rb:39
And I enter 1 in the claim value input field # features/step_definitions/statement_steps.rb:61
Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
features/statements_quantity.feature:24:in `Then Statement save button should be there'
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
@ui_only
Scenario Outline: Check quantity UI for invalid values # features/statements_quantity.feature:28
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property quantprop # features/step_definitions/statement_steps.rb:39
And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
Examples:
| value |
| astring |
| 1:1 |
@repo_login @modify_entity
Scenario: Quantity parser and saving should work properly # features/statements_quantity.feature:44
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property quantprop # features/step_definitions/statement_steps.rb:39
And I enter 1+-0 in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the statement save button # features/step_definitions/statement_steps.rb:31
timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
./features/step_definitions/statement_steps.rb:33:in `block (2 levels) in <top (required)>'
features/statements_quantity.feature:52:in `And I click the statement save button'
Then Statement string value of claim 1 in group 1 should be 1 # features/step_definitions/statement_steps.rb:228
And Statement name of group 1 should be the label of quantprop # features/step_definitions/statement_steps.rb:224
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
@repo_login @modify_entity
Scenario: Adding a statement of type quantity and reload page # features/statements_quantity.feature:60
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property quantprop # features/step_definitions/statement_steps.rb:39
And I enter 2.1+-0.1 in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the statement save button # features/step_definitions/statement_steps.rb:31
timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
./features/step_definitions/statement_steps.rb:33:in `block (2 levels) in <top (required)>'
features/statements_quantity.feature:67:in `And I click the statement save button'
And I reload the page # features/step_definitions/entity_steps.rb:114
Then Statement string value of claim 1 in group 1 should be 2.1±0.1 # features/step_definitions/statement_steps.rb:228
And Statement name of group 1 should be the label of quantprop # features/step_definitions/statement_steps.rb:224
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
# Wikidata UI tests
#
# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for statement ranks tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Setting ranks of statements
Background: # features/statements_rank.feature:11
Given I have an item to test # features/step_definitions/entity_steps.rb:22
And I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
And I have statements with the following properties and values: # features/step_definitions/statement_steps.rb:9
| stringprop | rank test |
And I am on the page of the item to test # features/step_definitions/entity_steps.rb:45
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@ui_only
Scenario: Check indicated rank # features/statements_rank.feature:22
Then Rank selector for claim 1 in group 1 should be disabled # features/step_definitions/rank_selector_steps.rb:28
And Indicated rank for claim 1 in group 1 should be normal # features/step_definitions/rank_selector_steps.rb:48
@ui_only
Scenario: Click the rank selector # features/statements_rank.feature:27
When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
And I click the rank selector of claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:9
Then Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
And Rank selector menu should be visible # features/step_definitions/rank_selector_steps.rb:32
And Rank selector item for normal rank should be visible # features/step_definitions/rank_selector_steps.rb:40
And Rank selector item for preferred rank should be visible # features/step_definitions/rank_selector_steps.rb:40
And Rank selector item for deprecated rank should be visible # features/step_definitions/rank_selector_steps.rb:40
And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
@ui_only
Scenario: Change the rank # features/statements_rank.feature:38
When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
And I click the rank selector of claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:9
And I select preferred rank for claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:13
Then Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
And Rank selector menu should not be visible # features/step_definitions/rank_selector_steps.rb:36
And Rank selector item for normal rank should not be visible # features/step_definitions/rank_selector_steps.rb:44
And Rank selector item for preferred rank should not be visible # features/step_definitions/rank_selector_steps.rb:44
And Rank selector item for deprecated rank should not be visible # features/step_definitions/rank_selector_steps.rb:44
And Statement save button should be there # features/step_definitions/statement_steps.rb:185
@modify_entity
Scenario: Change the rank and save # features/statements_rank.feature:50
When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
And I click the rank selector of claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:9
And I select preferred rank for claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:13
And I click the statement save button # features/step_definitions/statement_steps.rb:31
Then Rank selector for claim 1 in group 1 should be disabled # features/step_definitions/rank_selector_steps.rb:28
And Rank selector menu should not be visible # features/step_definitions/rank_selector_steps.rb:36
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Indicated rank for claim 1 in group 1 should be preferred # features/step_definitions/rank_selector_steps.rb:48
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
@modify_entity
Scenario: Change the rank, save and reload # features/statements_rank.feature:64
When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
And I click the rank selector of claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:9
And I select preferred rank for claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:13
And I click the statement save button # features/step_definitions/statement_steps.rb:31
And I reload the page # features/step_definitions/entity_steps.rb:114
Then Rank selector for claim 1 in group 1 should be disabled # features/step_definitions/rank_selector_steps.rb:28
And Rank selector menu should not be visible # features/step_definitions/rank_selector_steps.rb:36
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Indicated rank for claim 1 in group 1 should be preferred # features/step_definitions/rank_selector_steps.rb:48
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
# Wikidata UI tests
#
# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for statement snaktype tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Setting snaktypes of statements
Background: # features/statements_snaktype.feature:11
Given I have an item to test # features/step_definitions/entity_steps.rb:22
And I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
And I have statements with the following properties and values: # features/step_definitions/statement_steps.rb:9
| stringprop | snaktype test |
And I am on the page of the item to test # features/step_definitions/entity_steps.rb:45
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@ui_only
Scenario: Click the snaktype selector # features/statements_snaktype.feature:22
When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
And I click the snaktype selector of claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:9
Then Snaktype selector for claim 1 in group 1 should be there # features/step_definitions/snaktype_selector_steps.rb:21
And Snaktype selector menu should be visible # features/step_definitions/snaktype_selector_steps.rb:25
And Snaktype selector item for novalue snaktype should be visible # features/step_definitions/snaktype_selector_steps.rb:33
And Snaktype selector item for somevalue snaktype should be visible # features/step_definitions/snaktype_selector_steps.rb:33
And Snaktype selector item for value snaktype should be visible # features/step_definitions/snaktype_selector_steps.rb:33
And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
@ui_only
Scenario Outline: Change the snaktype # features/statements_snaktype.feature:33
When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
And I click the snaktype selector of claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:9
And I select <snaktype> snaktype for claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:13
Then Snaktype selector for claim 1 in group 1 should be there # features/step_definitions/snaktype_selector_steps.rb:21
And Snaktype selector menu should not be visible # features/step_definitions/snaktype_selector_steps.rb:29
And Snaktype selector item for novalue snaktype should not be visible # features/step_definitions/snaktype_selector_steps.rb:37
And Snaktype selector item for somevalue snaktype should not be visible # features/step_definitions/snaktype_selector_steps.rb:37
And Snaktype selector item for value snaktype should not be visible # features/step_definitions/snaktype_selector_steps.rb:37
And Statement save button should be there # features/step_definitions/statement_steps.rb:185
And Snaktype <snaktype> should be shown for claim 1 in group 1 # features/step_definitions/statement_steps.rb:240
Examples:
| snaktype |
| novalue |
| somevalue |
@modify_entity
Scenario Outline: Change the snaktype and save # features/statements_snaktype.feature:51
When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
And I click the snaktype selector of claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:9
And I select <snaktype> snaktype for claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:13
And I click the statement save button # features/step_definitions/statement_steps.rb:31
Then Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
And Snaktype selector menu should not be visible # features/step_definitions/snaktype_selector_steps.rb:29
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Snaktype <snaktype> should be shown for claim 1 in group 1 # features/step_definitions/statement_steps.rb:240
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
Examples:
| snaktype |
| novalue |
| somevalue |
@modify_entity
Scenario Outline: Change the snaktype, save and reload # features/statements_snaktype.feature:70
When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
And I click the snaktype selector of claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:9
And I select <snaktype> snaktype for claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:13
And I click the statement save button # features/step_definitions/statement_steps.rb:31
And I reload the page # features/step_definitions/entity_steps.rb:114
Then Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
And Snaktype selector menu should not be visible # features/step_definitions/snaktype_selector_steps.rb:29
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Snaktype <snaktype> should be shown for claim 1 in group 1 # features/step_definitions/statement_steps.rb:240
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
Examples:
| snaktype |
| novalue |
| somevalue |
# Wikidata UI tests
#
# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for string type statements tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Creating statements of type string
Background: # features/statements_string.feature:11
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
@repo_login @modify_entity
Scenario Outline: Adding a statement of type string # features/statements_string.feature:17
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
And I <save> # features/step_definitions/statement_steps.rb:130
Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Statement name of group 1 should be the label of stringprop # features/step_definitions/statement_steps.rb:224
And Statement string value of claim 1 in group 1 should be <value> # features/step_definitions/statement_steps.rb:228
Examples:
| value | save |
| it's a string | press the RETURN key in the claim value input field |
| <script>$('body').empty();</script> | click the statement save button |
@modify_entity @repo_login
Scenario: Adding a statement of type string and reload page # features/statements_string.feature:39
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
And I enter it's a string in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the statement save button # features/step_definitions/statement_steps.rb:31
And I reload the page # features/step_definitions/entity_steps.rb:114
Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Statement name of group 1 should be the label of stringprop # features/step_definitions/statement_steps.rb:224
And Statement string value of claim 1 in group 1 should be it's a string # features/step_definitions/statement_steps.rb:228
@modify_entity @repo_logi
Scenario: Adding a statement of type string with a too long string # features/statements_string.feature:57
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| stringprop | string |
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
And I enter a too long string as claim value # features/step_definitions/statement_steps.rb:106
And I click the statement save button # features/step_definitions/statement_steps.rb:31
Then An error message should be displayed # features/step_definitions/entity_steps.rb:110
# Wikidata UI tests
#
# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for time type statements tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Using time properties in statements
Background: # features/statements_time.feature:11
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| timeprop | time |
And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
Scenario: Time UI should work properly # features/statements_time.feature:16
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
And I enter 1 in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the InputExtender toggler link # features/step_definitions/statement_steps.rb:256
Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And InputExtender preview should be there # features/step_definitions/statement_steps.rb:280
And Time precision chooser should be there # features/step_definitions/statement_steps.rb:272
And Time calendar chooser should be there # features/step_definitions/statement_steps.rb:276
Scenario Outline: Check UI for invalid values # features/statements_time.feature:30
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
Examples:
| value |
| astring |
| 1 11 199 9 |
| 1 AC |
| 32.12.2015 |
# | 1.9.1999 12:12 | TODO: currently disabled see as well T102930
Scenario Outline: Time parser in the preview and precision detection should work properly # features/statements_time.feature:48
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the InputExtender toggler link # features/step_definitions/statement_steps.rb:256
Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And <preview> should be displayed in the InputExtender preview # features/step_definitions/statement_steps.rb:260
And <calendar> should be the time calendar setting # features/step_definitions/statement_steps.rb:268
And <precision> should be the time precision setting # features/step_definitions/statement_steps.rb:264
Examples:
| value | preview | calendar | precision |
| 1 | 1 | Julian | year |
| 1 1 | January 1 | Julian | month |
| 1 1 1999 | 1 January 1999 | Gregorian | day |
| 12.11.1981 | 12 November 1981 | Gregorian | day |
| 1 bc | 1 BCE | Julian | year |
| 1 b.c. | 1 BCE | Julian | year |
| 1 ad | 1 | Julian | year |
| 1 ce | 1 | Julian | year |
| 10000 | 10000 years CE | Gregorian | 10,000 years |
| 100000 | 100000 years CE | Gregorian | 100,000 years |
| 1000000 BC | 1 million years BCE | Julian | million years |
| 10000000 | 10 million years CE | Gregorian | ten million years |
| 100000000 | 100 million years CE | Gregorian | hundred million years |
| 1000000000 BCE | 1 billion years BCE | Julian | billion years |
@repo_login @modify_entity
Scenario Outline: Adding a statement of type time # features/statements_time.feature:80
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
And I enter 14.05.1985 in the claim value input field # features/step_definitions/statement_steps.rb:61
And I <save> # features/step_definitions/statement_steps.rb:31
Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Statement name of group 1 should be the label of timeprop # features/step_definitions/statement_steps.rb:224
And Statement string value of claim 1 in group 1 should be 14 May 1985 # features/step_definitions/statement_steps.rb:228
Examples:
| save |
| click the statement save button |
| press the RETURN key in the claim value input field |
@repo_login @modify_entity
Scenario: Adding a statement of type time and reload page # features/statements_time.feature:100
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
And I enter 14.05.1985 in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the statement save button # features/step_definitions/statement_steps.rb:31
And I reload the page # features/step_definitions/entity_steps.rb:114
Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Statement name of group 1 should be the label of timeprop # features/step_definitions/statement_steps.rb:224
And Statement string value of claim 1 in group 1 should be 14 May 1985 # features/step_definitions/statement_steps.rb:228
# Wikidata UI tests
#
# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
# License:: GNU GPL v2+
#
# feature definition for url type statements tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
Feature: Using url properties in statements
Background: # features/statements_url.feature:11
Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
| urlprop | url |
And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
@repo_login
Scenario Outline: Check UI for invalid values # features/statements_url.feature:17
Given I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the statement save button # features/step_definitions/statement_steps.rb:31
Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
And An error message should be displayed # features/step_definitions/entity_steps.rb:110
Examples:
| value |
| this is no url |
| missing.http.org |
@repo_login @modify_entity
Scenario Outline: Adding a statement of type url # features/statements_url.feature:35
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
And I enter http://wikidata.org/ in the claim value input field # features/step_definitions/statement_steps.rb:61
And I <save> # features/step_definitions/statement_steps.rb:130
Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Statement link text of claim 1 in group 1 should be http://wikidata.org/ # features/step_definitions/statement_steps.rb:248
Examples:
| save |
| press the RETURN key in the claim value input field |
| click the statement save button |
@repo_login @modify_entity
Scenario Outline: Save a statement of type url and check the output # features/statements_url.feature:57
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the statement save button # features/step_definitions/statement_steps.rb:31
Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Statement name of group 1 should be the label of urlprop # features/step_definitions/statement_steps.rb:224
And Statement link element of claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:244
And Statement link text of claim 1 in group 1 should be <value> # features/step_definitions/statement_steps.rb:248
Examples:
| value |
| ftp://ftp-stud.hs-esslingen.de/pub |
| irc://irc.freenode.net/ |
| mailto:mail@example.com |
| http://عربي.امارات/en/ |
@repo_login @modify_entity
Scenario: Save a statement of type url and check the link href # features/statements_url.feature:80
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
And I enter http://www.wikimedia.de in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the statement save button # features/step_definitions/statement_steps.rb:31
Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Statement name of group 1 should be the label of urlprop # features/step_definitions/statement_steps.rb:224
And Statement link element of claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:244
And Statement link text of claim 1 in group 1 should be http://www.wikimedia.de # features/step_definitions/statement_steps.rb:248
And Statement link url of claim 1 in group 1 should be http://www.wikimedia.de/ # features/step_definitions/statement_steps.rb:252
@repo_login @modify_entity
Scenario: Adding a statement of type url and reload page # features/statements_url.feature:97
Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
And I am on an item page # features/step_definitions/entity_steps.rb:17
And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
When I click the statement add button # features/step_definitions/statement_steps.rb:19
And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
And I enter http://wikidata.org/ in the claim value input field # features/step_definitions/statement_steps.rb:61
And I click the statement save button # features/step_definitions/statement_steps.rb:31
And I reload the page # features/step_definitions/entity_steps.rb:114
Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
And Statement name of group 1 should be the label of urlprop # features/step_definitions/statement_steps.rb:224
And Statement link text of claim 1 in group 1 should be http://wikidata.org/ # features/step_definitions/statement_steps.rb:248
Failing Scenarios:
cucumber features/description.feature:78 # Scenario: Description with a too long value
cucumber features/sitelinks.feature:36 # Scenario: Type site id
cucumber features/sitelinks.feature:52 # Scenario: Type site id and page name
cucumber features/sitelinks.feature:127 # Scenario: Save sitelink and reload
cucumber features/sitelinks.feature:127 # Scenario: Save sitelink and reload
cucumber features/sitelinks.feature:143 # Scenario: Edit sitelink
cucumber features/sitelinks.feature:159 # Scenario: Add sitelink
cucumber features/sitelinks.feature:159 # Scenario: Add sitelink
cucumber features/sitelinks.feature:183 # Scenario: Add multiple sitelinks
cucumber features/sitelinks.feature:195 # Scenario: Remove multiple sitelinks
cucumber features/sitelinks.feature:210 # Scenario: List of sitelinks is complete
cucumber features/sitelinks.feature:228 # Scenario: Add new sitelink to already referenced site
cucumber features/sitelinks_badge.feature:18 # Scenario: Sitelink badge UI is there
cucumber features/statement.feature:39 # Scenario: Cancel statement
cucumber features/statements_monolingual.feature:42 # Scenario: Adding a statement of type monolingual
cucumber features/statements_monolingual.feature:42 # Scenario: Adding a statement of type monolingual
cucumber features/statements_monolingual.feature:63 # Scenario: Adding a statement of type monolingual and use keyboard to select language
cucumber features/statements_monolingual.feature:63 # Scenario: Adding a statement of type monolingual and use keyboard to select language
cucumber features/statements_monolingual.feature:85 # Scenario: Adding a statement of type monolingual and reload page
cucumber features/statements_quantity.feature:17 # Scenario: Quantity UI should work properly
cucumber features/statements_quantity.feature:44 # Scenario: Quantity parser and saving should work properly
cucumber features/statements_quantity.feature:60 # Scenario: Adding a statement of type quantity and reload page
199 scenarios (22 failed, 5 skipped, 172 passed)
2360 steps (22 failed, 170 skipped, 2168 passed)
40m41.796s