1
0
Fork 0

Remove unnecessary features

This commit is contained in:
Alex Kotov 2019-05-03 12:56:48 +05:00
parent 56ee432641
commit a06c78c915
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
3 changed files with 0 additions and 115 deletions

View file

@ -2,53 +2,13 @@ Feature: Main page
Scenario: as a visitor
When I visit the main page
Then I see the main page
And I see the join button
And I do not see the membership application button
When I click the join button
Then I see membership application creation form
Scenario: as a guest account
Given I am signed in as guest
When I visit the main page
Then I see the main page
And I see the join button
And I do not see the membership application button
When I click the join button
Then I see membership application creation form
Scenario: as a usual account
Given I am signed in with email "user@example.com"
When I visit the main page
Then I see the main page
And I see the join button
And I do not see the membership application button
When I click the join button
Then I see membership application creation form
Scenario: when already sent a membership application as a visitor
When I send a membership application
Then I see the membership application tracking page
When I visit the main page
Then I see the main page
And I do not see the join button
And I see the membership application button
When I click the membership application button
Then I see the membership application tracking page
Scenario: when already sent a membership application as a usual account
Given I am signed in with email "user@example.com"
When I send a membership application
Then I see the membership application tracking page
When I visit the main page
Then I see the main page
And I do not see the join button
And I see the membership application button
When I click the membership application button
Then I see the membership application tracking page

View file

@ -1,35 +0,0 @@
Feature: Membership application
Scenario: as a visitor
When I visit the main page
And I click the button "Вступить"
And I fill form with the following data:
| key | value |
| Фамилия | Иванов |
| Имя | Иван |
| Отчество | Иванович |
| Профессия или род деятельности | Программист |
| Адрес электронной почты | user@example.com |
| Телефон | 88005553535 |
| Имя пользователя в Telegram | foobar |
| Членство в других общественных организациях | Не скажу |
| Комментарий | Примите, плиз |
And I click the form button "Отправить заявление"
Then I see the membership application tracking page
Scenario: as a supporter
Given I am signed in as party supporter
When I visit the main page
And I click the button "Ваше заявление"
Then I see that I am already a party supporter
Scenario: as a member
Given I am signed in as party member
When I visit the main page
And I click the button "Ваше заявление"
Then I see that I am already a party member
Scenario: as an excluded member
Given I am signed in as excluded party member
When I visit the main page
And I click the button "Ваше заявление"
Then I see that I am excluded from party

View file

@ -19,43 +19,3 @@ Feature: Sign up
When I try to sign in with email "user@example.com" and password "password"
Then I am signed in as "user@example.com"
Scenario: as a guest account
When I visit the main page
Then I see the main page
And I see the join button
And I do not see the membership application button
When I click the button "Вступить"
And I fill form with the following data:
| key | value |
| Фамилия | Иванов |
| Имя | Иван |
| Адрес электронной почты | user@example.com |
| Телефон | 88005553535 |
And I click the form button "Отправить заявление"
Then I see the membership application tracking page
When I click the button "Регистрация"
And I fill form with the following data:
| key | value |
| Email | user@example.com |
| Пароль | password |
| Подтверждение пароля | password |
And I click the form button "Регистрация"
Then I am successfully signed up, but my email is unconfirmed
And I received confirmation email as "user@example.com"
When I follow confirmation link for email "user@example.com"
Then I see that my email is confirmed
When I try to sign in with email "user@example.com" and password "password"
Then I am signed in as "user@example.com"
When I visit the main page
Then I see the main page
And I do not see the join button
And I see the membership application button
When I click the membership application button
Then I see the membership application tracking page