1
0
Fork 0
This repository has been archived on 2023-03-28. 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 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: Passport creation
Background:
Given I visit "/passports/new"
Scenario: all fields are filled
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
Scenario: only required fields are filled
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+"