Further condensed testing

This commit is contained in:
Grzegorz Leoniec 2019-01-08 18:45:36 +01:00
parent f982ea2c40
commit 272012c020
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
2 changed files with 10 additions and 10 deletions

View File

@ -11,17 +11,16 @@ Feature: About me and and location
And I am on the "settings" page
Scenario: I change my name
When save "Hansi" as my new name
When I save "Hansi" as my new name
Then I can see my new name "Hansi" when I click on my profile picture in the top right
When I refresh the page
Then I can see my new name "Hansi" when I click on my profile picture in the top right
Scenario Outline: I set my location to "<location>"
When I enter "<location>" as my location
And I press "Save"
When I save "<location>" as my location
And I visit the "profile/peter-lustig" page
Then I can see a "<location>" as my location
Then I can see "<location>" as my location
Examples: Location
| location | type |
@ -30,8 +29,7 @@ Feature: About me and and location
| Germany | Country |
Scenario: I write about me
When I enter "Some text about me" to about me
And I press "Save"
When I save "Some text about me" to about me
And I visit the "profile/peter-lustig" page
Then I can see a "Some text about me" as my about me

View File

@ -161,18 +161,20 @@ Then('I can see a list of tags ordered by user and post count:', table => {
lastColumnIsSortedInDescendingOrder()
})
When('I enter {string} as my location', location => {
When('I save {string} as my location', location => {
cy.get('input[id=city]').type(location)
cy.get('.ds-select-option')
.contains(location)
.click()
cy.contains('Save').click()
})
When('I enter {string} to about me', text => {
When('I save {string} to about me', text => {
cy.get('textarea[id=bio]')
.clear()
.type(text)
cy.contains('Save').click()
})
When('save {string} as my new name', name => {
When('I save {string} as my new name', name => {
cy.get('input[id=name]')
.clear()
.type(name)
@ -189,7 +191,7 @@ Then(
When('I press {string}', label => {
cy.contains(label).click()
})
Then('I can see a {string} as my location', location => {
Then('I can see {string} as my location', location => {
cy.contains(location)
})
Then('I can see a {string} as my about me', about => {