From e13e14ce64a09d5b1e5f6765bcc2e857bf26eadf Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Mon, 7 Jan 2019 18:17:58 +0100 Subject: [PATCH] Added Cypress Tests for about me and location --- .../integration/AboutMeAndLocation.feature | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 cypress/integration/AboutMeAndLocation.feature diff --git a/cypress/integration/AboutMeAndLocation.feature b/cypress/integration/AboutMeAndLocation.feature new file mode 100644 index 000000000..72a97bf22 --- /dev/null +++ b/cypress/integration/AboutMeAndLocation.feature @@ -0,0 +1,42 @@ +Feature: About me and and location + As a user + I would like to add some about me text and a location + So others can get some info about me and my location + + The location and about me are show on the user. Later it will be possible + to search for users by location. + + Background: + Given I am logged in + + Scenario: I change my name + When I visit the "settings" page + And I enter "Hansi" as my name + And I press "Save" + And I can click on my profile picture in the top right corner + Then I can see a "Hansi" as my name + + When I refresh the page + And I can click on my profile picture in the top right corner + Then I can see a "Hansi" as my name + + When I visit the "settings" page + And I enter "Peter Lustig" as my name + And I press "Save" + + Scenario: I set my location + When I visit the "settings" page + And I enter "Hamburg" as my location + And I press "Save" + And I visit the "profile/peter-lustig" page + Then I can see a "Hamburg" as my location + + Scenario: I write about me + When I visit the "settings" page + And I enter "Some text about me" to about me + And I press "Save" + And I visit the "profile/peter-lustig" page + Then I can see a "Some text about me" as my about me + + +