zeljkofilipin added a comment.

I am able to reproduce the problem from my machine, targeting beta cluster.

$ MEDIAWIKI_ENVIRONMENT=beta bundle exec cucumber features/aliases.feature 
# Wikidata UI tests
#
# Author:: Tobias Gritschacher ([email protected])
# License:: GNU GPL v2+
#
# feature definition for item aliases tests
@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @test.wikidata.org @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:19
    And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:96
    And Anonymous edit warnings are disabled     # features/step_definitions/entity_steps.rb:100

  @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:127
    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                      |
      expected: == 1
           got:    0 (RSpec::Expectations::ExpectationNotMetError)
      features/aliases.feature:65:in `And There should be 1 aliases in the list'
      | press the RETURN key in the new alias input field |
      The save has failed. (failed-save) (MediawikiApi::ApiError)
      ./features/support/pages/item_page.rb:29:in `/^I have an item with label "(.*)" and description "(.*)"$/'
      features/aliases.feature:12:in `Given I am on an item page'

  @modify_entity @save_aliases @smoke
  Scenario: Save multiple aliases                              # features/aliases.feature:74
    Given I am on an item page                   # features/step_definitions/entity_steps.rb:19
      The save has failed. (failed-save) (MediawikiApi::ApiError)
      ./features/support/pages/item_page.rb:29:in `/^I have an item with label "(.*)" and description "(.*)"$/'
      features/aliases.feature:12:in `Given I am on an item page'
    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:127
    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

  @integration @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:123

  @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:127
    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

Failing Scenarios:
cucumber features/aliases.feature:59 # Scenario: Save alias and reload
cucumber features/aliases.feature:59 # Scenario: Save alias and reload
cucumber features/aliases.feature:74 # Scenario: Save multiple aliases
cucumber features/aliases.feature:83 # Scenario: Remove alias
cucumber features/aliases.feature:94 # Scenario: Remove all aliases
cucumber features/aliases.feature:106 # Scenario: Remove all aliases and reload
cucumber features/aliases.feature:119 # Scenario: Edit aliases UI
cucumber features/aliases.feature:130 # Scenario: Edit multiple aliases
cucumber features/aliases.feature:143 # Scenario: Duplicated aliases detection
cucumber features/aliases.feature:180 # Scenario: Too long input for alias
cucumber features/aliases.feature:187 # Scenario: Zombie alias bugfix
cucumber features/aliases.feature:202 # Scenario: Bugfix for editbutton appearing when it should not

22 scenarios (12 failed, 10 passed)
220 steps (12 failed, 106 skipped, 102 passed)
1m45.110s

TASK DETAIL
https://phabricator.wikimedia.org/T167432

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zeljkofilipin
Cc: gerritbot, PokestarFan, Tobi_WMDE_SW, Jonas, thiemowmde, WMDE-leszek, zeljkofilipin, hashar, Aleksey_WMDE, Aklapper, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Lewizho99, Maathavan, Liudvikas, Luke081515, thcipriani, Wikidata-bugs, aude, Mbch331, Jay8g, greg
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to