adrianheine added a comment.

  Sure, that's the output:
  
    $ HEADLESS=true BROWSER=firefox WB_REPO_USERNAME=… WB_REPO_PASSWORD=… 
bundle exec cucumber --tag '@local_config' features/statements_quantity.feature 
    # Wikidata UI tests
    #
    # Author:: Christoph Fischer ([email protected])
    # 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 |
          757: unexpected token at '' (JSON::ParserError)
          ./features/support/pages/property_page.rb:35:in `create_property'
          ./features/support/pages/property_page.rb:61:in `block in 
create_properties'
          ./features/support/pages/property_page.rb:60:in `each'
          ./features/support/pages/property_page.rb:60:in `create_properties'
          ./features/step_definitions/entity_steps.rb:76:in `/^I have the 
following properties with datatype:$/'
          features/statements_quantity.feature:12:in `Given I have the 
following properties with datatype:'
        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
        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
        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
        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
    
    Failing Scenarios:
    cucumber features/statements_quantity.feature:17 # Scenario: Quantity UI 
should work properly
    
    5 scenarios (1 failed, 4 skipped)
    60 steps (1 failed, 59 skipped)
    0m4.484s
  
  My MediaWiki setup is a manual, pretty simple installation with Wikibase and 
using MySQL.

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

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

To: adrianheine
Cc: zeljkofilipin, adrianheine, Aklapper, D3r1ck01, Izno, Wikidata-bugs, aude, 
Mbch331, greg



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to