diff --git a/tests/browser/features/statements_geo.feature b/tests/browser/features/statements_geo.feature index f08fac0..b89f30f 100644 --- a/tests/browser/features/statements_geo.feature +++ b/tests/browser/features/statements_geo.feature @@ -1,101 +1,99 @@ # 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: Given I have the following properties with datatype: | geoprop | globe-coordinate | And I am not logged in to the repo @ui_only Scenario: Geo UI should work properly Given I am on an item page And The copyright warning has been dismissed And Anonymous edit warnings are disabled When I click the statement add button And I select the claim property geoprop And I enter 1,1 in the claim value input field - And I click the InputExtender toggler link Then Statement save button should be there And Statement cancel button should be there And InputExtender preview should be there And Geo precision chooser should be there @ui_only Scenario Outline: Check geo UI for invalid values Given I am on an item page And The copyright warning has been dismissed And Anonymous edit warnings are disabled When I click the statement add button And I select the claim property geoprop And I enter in the claim value input field Then Statement save button should not be there And Statement cancel button should be there 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 Given I am on an item page And The copyright warning has been dismissed And Anonymous edit warnings are disabled When I click the statement add button And I select the claim property geoprop And I enter in the claim value input field - And I click the InputExtender toggler link Then should be displayed in the InputExtender preview And should be the geo precision setting And Statement save button should be there And Statement cancel button should be there 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 Given I am logged in to the repo And I am on an item page And The copyright warning has been dismissed When I click the statement add button And I select the claim property geoprop And I enter 52°29'53.9"N, 13°22'51.8"E in the claim value input field And I click the statement save button Then Statement string value of claim 1 in group 1 should be 52°29'53.9"N, 13°22'51.8"E And Statement name of group 1 should be the label of geoprop And Statement save button should not be there And Statement cancel button should not be there And Statement edit button for claim 1 in group 1 should be there @repo_login @modify_entity Scenario: Adding a statement of type geo and reload page Given I am logged in to the repo And I am on an item page And The copyright warning has been dismissed When I click the statement add button And I select the claim property geoprop And I enter 52°29'53.9"N, 13°22'51.8"E in the claim value input field And I click the statement save button And I reload the page Then Statement string value of claim 1 in group 1 should be 52°29'53.9"N, 13°22'51.8"E And Statement name of group 1 should be the label of geoprop And Statement save button should not be there And Statement cancel button should not be there And Statement edit button for claim 1 in group 1 should be there diff --git a/tests/browser/features/statements_time.feature b/tests/browser/features/statements_time.feature index debcd3a..81b5321 100644 --- a/tests/browser/features/statements_time.feature +++ b/tests/browser/features/statements_time.feature @@ -1,113 +1,111 @@ # 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: Given I have the following properties with datatype: | timeprop | time | And I am not logged in to the repo Scenario: Time UI should work properly Given I am on an item page And The copyright warning has been dismissed And Anonymous edit warnings are disabled When I click the statement add button And I select the claim property timeprop And I enter 1 in the claim value input field - And I click the InputExtender toggler link Then Statement save button should be there And Statement cancel button should be there And InputExtender preview should be there And Time precision chooser should be there And Time calendar chooser should be there Scenario Outline: Check UI for invalid values Given I am on an item page And The copyright warning has been dismissed And Anonymous edit warnings are disabled When I click the statement add button And I select the claim property timeprop And I enter in the claim value input field Then Statement save button should not be there And Statement cancel button should be there 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 Given I am on an item page And The copyright warning has been dismissed And Anonymous edit warnings are disabled When I click the statement add button And I select the claim property timeprop And I enter in the claim value input field - And I click the InputExtender toggler link Then Statement save button should be there And Statement cancel button should be there And should be displayed in the InputExtender preview And should be the time calendar setting And should be the time precision setting 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 Given I am logged in to the repo And I am on an item page And The copyright warning has been dismissed When I click the statement add button And I select the claim property timeprop And I enter 14.05.1985 in the claim value input field And I Then Statement save button should not be there And Statement cancel button should not be there And Statement edit button for claim 1 in group 1 should be there And Statement name of group 1 should be the label of timeprop And Statement string value of claim 1 in group 1 should be 14 May 1985 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 Given I am logged in to the repo And I am on an item page And The copyright warning has been dismissed When I click the statement add button And I select the claim property timeprop And I enter 14.05.1985 in the claim value input field And I click the statement save button And I reload the page Then Statement save button should not be there And Statement cancel button should not be there And Statement edit button for claim 1 in group 1 should be there And Statement name of group 1 should be the label of timeprop And Statement string value of claim 1 in group 1 should be 14 May 1985