1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/features/desktop/account.feature
2019-10-02 23:44:34 +05:00

135 lines
5.4 KiB
Gherkin
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Feature: Account
Scenario: of a user
Given there is a usual 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 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 "Администратор"
And I see text "Hi there :)"
Scenario: of a supporter
Given there is a supporter account with the following data:
| 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 :)"
And I see text "Член или сторонник"
And I see text "Сторонник"
Scenario: of an excluded member
Given there is an excluded member account with the following data:
| 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 :)"
And I see text "Исключённый член"
Scenario: of a member
Given there is a member account with the following data:
| 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 :)"
And I see text "Член или сторонник"
And I see text "Член"
Scenario: of a federal manager
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 | Москва |
When I visit "/accounts/kotovalexarian"
Then I see text "kotovalexarian"
And I see text "Alex Kotov"
And I see text "Hi there :)"
And I see text "Член или сторонник"
And I see text "Член"
And I see text "Член ФК"
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 :)"
And I see text "Член или сторонник"
And I see text "Член"
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 :)"
And I see text "Член или сторонник"
And I see text "Член"
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 :)"
And I see text "Член или сторонник"
And I see text "Член"
And I see text "Член РКРК"
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 :)"
And I see text "Член или сторонник"
And I see text "Член"
And I see text "Секретарь РК РО"