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/staff_people_create.feature

24 lines
886 B
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: Staff people create
Background:
Given I am signed in as superuser
Given I visit "/staff/people"
Given I click "Создать"
Scenario: with valid attributes
When I fill form with the following data:
| key | value |
| Фамилия | Иванов |
| Имя | Павел |
And I click the form button "Отправить"
Then I am at "/staff/people/\d+"
And I see text "Иванов"
And I see text "Павел"
Scenario: with invalid attributes:
When I fill form with the following data:
| key | value |
| Фамилия | Иванов |
And I click the form button "Отправить"
Then I am at "/staff/people"
And I see text "Пожалуйста, исправьте следующие ошибки"
And I see text "Имя не может быть пустым"