$ 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 # 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 # 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 # 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 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 # features/step_definitions/aliases_steps.rb:76 Examples: | alias | alias_expected | | "0" | "0" | | " norm a lize me " | "norm a lize me" | | "" | "" | @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 # 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 # 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 # 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 as description # features/step_definitions/description_steps.rb:20 And I click the header save button # features/step_definitions/header_steps.rb:18 Then 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" | | "" | "" | | "{{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 # => true got # => 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 # 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 # 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 # 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 # 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 # 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