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

41 lines
1.6 KiB
Gherkin
Raw Normal View History

2018-11-30 05:32:26 -05:00
Feature: Passport creation
Background:
2018-11-30 19:45:51 -05:00
Given I visit "/passports/new"
2018-11-30 05:32:26 -05:00
2018-12-02 17:06:22 -05:00
Scenario: all fields are filled
2018-11-30 05:32:26 -05:00
Given I want to create the following passport:
| key | value |
| Фамилия | Иванов |
| Имя | Иван |
| Отчество | Иванович |
| Пол | Мужской |
| Место рождения | Москва |
| Серия | 1234 |
| Номер | 567890 |
| Кем выдан | ФСМ |
| Код подразделения | 123-456 |
When I fill the passport creation form
When I click the passport creation button
Then I see the passport page
2018-12-02 17:06:22 -05:00
Scenario: only required fields are filled
2018-11-30 05:32:26 -05:00
Given I want to create the following passport:
| key | value |
| Фамилия | Петрова |
| Имя | Мария |
| Отчество | |
| Пол | Женский |
| Место рождения | Мурманск |
| Серия | 0001 |
| Номер | 000001 |
| Кем выдан | ФСМ |
| Код подразделения | 001-001 |
When I fill the passport creation form
When I click the passport creation button
Then I see the passport page
Scenario: only image is uploaded, no fields are filled
When I upload "passport_image_1.jpg" as "Изображения"
And I click the passport creation button
Then I am at "/passports/\d+"