2019-03-24 09:59:47 -04:00
|
|
|
|
Feature: Account
|
2019-03-24 14:01:59 -04:00
|
|
|
|
Scenario: of a user
|
|
|
|
|
Given there is a usual account with the following data:
|
2019-03-24 15:27:06 -04:00
|
|
|
|
| nickname | kotovalexarian |
|
2019-03-24 14:01:59 -04:00
|
|
|
|
| public_name | Alex Kotov |
|
|
|
|
|
| biography | Hi there :) |
|
|
|
|
|
When I visit "/accounts/kotovalexarian"
|
|
|
|
|
Then I see text "kotovalexarian"
|
|
|
|
|
And I see text "Alex Kotov"
|
2019-08-11 16:11:59 -04:00
|
|
|
|
And I do not see text "Администратор"
|
|
|
|
|
And I see text "Hi there :)"
|
|
|
|
|
|
|
|
|
|
Scenario: of a superuser
|
|
|
|
|
Given there is a superuser account with the following data:
|
|
|
|
|
| nickname | kotovalexarian |
|
|
|
|
|
| public_name | Alex Kotov |
|
|
|
|
|
| biography | Hi there :) |
|
|
|
|
|
When I visit "/accounts/kotovalexarian"
|
|
|
|
|
Then I see text "kotovalexarian"
|
|
|
|
|
And I see text "Alex Kotov"
|
|
|
|
|
And I see text "Администратор"
|
2019-03-24 14:01:59 -04:00
|
|
|
|
And I see text "Hi there :)"
|
|
|
|
|
|
2019-03-24 14:12:17 -04:00
|
|
|
|
Scenario: of a supporter
|
|
|
|
|
Given there is a supporter account with the following data:
|
2019-06-23 11:59:44 -04:00
|
|
|
|
| nickname | kotovalexarian |
|
|
|
|
|
| public_name | Alex Kotov |
|
|
|
|
|
| biography | Hi there :) |
|
|
|
|
|
| federal_subject | Москва |
|
2019-03-24 14:12:17 -04:00
|
|
|
|
When I visit "/accounts/kotovalexarian"
|
|
|
|
|
Then I see text "kotovalexarian"
|
|
|
|
|
And I see text "Alex Kotov"
|
|
|
|
|
And I see text "Hi there :)"
|
2019-10-02 14:44:34 -04:00
|
|
|
|
And I see text "Член или сторонник"
|
|
|
|
|
And I see text "Сторонник"
|
2019-03-24 14:12:17 -04:00
|
|
|
|
|
2019-08-15 00:25:29 -04:00
|
|
|
|
Scenario: of an excluded member
|
|
|
|
|
Given there is an excluded member account with the following data:
|
2019-06-23 11:59:44 -04:00
|
|
|
|
| nickname | kotovalexarian |
|
|
|
|
|
| public_name | Alex Kotov |
|
|
|
|
|
| biography | Hi there :) |
|
|
|
|
|
| federal_subject | Москва |
|
2019-03-24 09:59:47 -04:00
|
|
|
|
When I visit "/accounts/kotovalexarian"
|
|
|
|
|
Then I see text "kotovalexarian"
|
|
|
|
|
And I see text "Alex Kotov"
|
|
|
|
|
And I see text "Hi there :)"
|
2019-10-02 14:44:34 -04:00
|
|
|
|
And I see text "Исключённый член"
|
2019-03-24 14:47:55 -04:00
|
|
|
|
|
2019-08-15 00:25:29 -04:00
|
|
|
|
Scenario: of a member
|
|
|
|
|
Given there is a member account with the following data:
|
2019-06-23 11:59:44 -04:00
|
|
|
|
| nickname | kotovalexarian |
|
|
|
|
|
| public_name | Alex Kotov |
|
|
|
|
|
| biography | Hi there :) |
|
|
|
|
|
| federal_subject | Москва |
|
2019-03-24 14:47:55 -04:00
|
|
|
|
When I visit "/accounts/kotovalexarian"
|
|
|
|
|
Then I see text "kotovalexarian"
|
|
|
|
|
And I see text "Alex Kotov"
|
|
|
|
|
And I see text "Hi there :)"
|
2019-10-02 14:44:34 -04:00
|
|
|
|
And I see text "Член или сторонник"
|
|
|
|
|
And I see text "Член"
|
2019-08-14 23:58:02 -04:00
|
|
|
|
|
|
|
|
|
Scenario: of a federal manager
|
2019-08-15 00:25:29 -04:00
|
|
|
|
Given there is a member account with the following data:
|
|
|
|
|
| factory | federal_manager_person |
|
|
|
|
|
| nickname | kotovalexarian |
|
|
|
|
|
| public_name | Alex Kotov |
|
|
|
|
|
| biography | Hi there :) |
|
|
|
|
|
| federal_subject | Москва |
|
2019-08-14 23:58:02 -04:00
|
|
|
|
When I visit "/accounts/kotovalexarian"
|
|
|
|
|
Then I see text "kotovalexarian"
|
|
|
|
|
And I see text "Alex Kotov"
|
|
|
|
|
And I see text "Hi there :)"
|
2019-10-02 14:44:34 -04:00
|
|
|
|
And I see text "Член или сторонник"
|
|
|
|
|
And I see text "Член"
|
2019-08-14 23:58:02 -04:00
|
|
|
|
And I see text "Член ФК"
|
2019-08-15 00:25:29 -04:00
|
|
|
|
|
|
|
|
|
Scenario: of a federal supervisor
|
|
|
|
|
Given there is a member account with the following data:
|
|
|
|
|
| factory | federal_supervisor_person |
|
|
|
|
|
| nickname | kotovalexarian |
|
|
|
|
|
| public_name | Alex Kotov |
|
|
|
|
|
| biography | Hi there :) |
|
|
|
|
|
| federal_subject | Москва |
|
|
|
|
|
When I visit "/accounts/kotovalexarian"
|
|
|
|
|
Then I see text "kotovalexarian"
|
|
|
|
|
And I see text "Alex Kotov"
|
|
|
|
|
And I see text "Hi there :)"
|
2019-10-02 14:44:34 -04:00
|
|
|
|
And I see text "Член или сторонник"
|
|
|
|
|
And I see text "Член"
|
2019-08-15 00:25:29 -04:00
|
|
|
|
And I see text "Член ЦКРК"
|
|
|
|
|
|
|
|
|
|
Scenario: of a regional manager
|
|
|
|
|
Given there is a member account with the following data:
|
|
|
|
|
| factory | regional_manager_person |
|
|
|
|
|
| nickname | kotovalexarian |
|
|
|
|
|
| public_name | Alex Kotov |
|
|
|
|
|
| biography | Hi there :) |
|
|
|
|
|
| federal_subject | Москва |
|
|
|
|
|
When I visit "/accounts/kotovalexarian"
|
|
|
|
|
Then I see text "kotovalexarian"
|
|
|
|
|
And I see text "Alex Kotov"
|
|
|
|
|
And I see text "Hi there :)"
|
2019-10-02 14:44:34 -04:00
|
|
|
|
And I see text "Член или сторонник"
|
|
|
|
|
And I see text "Член"
|
2019-08-15 00:25:29 -04:00
|
|
|
|
And I see text "Член РК РО"
|
|
|
|
|
|
|
|
|
|
Scenario: of a regional supervisor
|
|
|
|
|
Given there is a member account with the following data:
|
|
|
|
|
| factory | regional_supervisor_person |
|
|
|
|
|
| nickname | kotovalexarian |
|
|
|
|
|
| public_name | Alex Kotov |
|
|
|
|
|
| biography | Hi there :) |
|
|
|
|
|
| federal_subject | Москва |
|
|
|
|
|
When I visit "/accounts/kotovalexarian"
|
|
|
|
|
Then I see text "kotovalexarian"
|
|
|
|
|
And I see text "Alex Kotov"
|
|
|
|
|
And I see text "Hi there :)"
|
2019-10-02 14:44:34 -04:00
|
|
|
|
And I see text "Член или сторонник"
|
|
|
|
|
And I see text "Член"
|
|
|
|
|
And I see text "Член РКРК"
|
2019-08-15 00:25:29 -04:00
|
|
|
|
|
|
|
|
|
Scenario: of a regional secretary
|
|
|
|
|
Given there is a member account with the following data:
|
|
|
|
|
| factory | regional_secretary_person |
|
|
|
|
|
| nickname | kotovalexarian |
|
|
|
|
|
| public_name | Alex Kotov |
|
|
|
|
|
| biography | Hi there :) |
|
|
|
|
|
| federal_subject | Москва |
|
|
|
|
|
When I visit "/accounts/kotovalexarian"
|
|
|
|
|
Then I see text "kotovalexarian"
|
|
|
|
|
And I see text "Alex Kotov"
|
|
|
|
|
And I see text "Hi there :)"
|
2019-10-02 14:44:34 -04:00
|
|
|
|
And I see text "Член или сторонник"
|
|
|
|
|
And I see text "Член"
|
2019-08-15 00:25:29 -04:00
|
|
|
|
And I see text "Секретарь РК РО"
|