1
0
Fork 0

Remove unnecessary step definition

This commit is contained in:
Alex Kotov 2019-07-17 14:17:24 +05:00
parent a85a53e20d
commit 852ffb2652
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 3 additions and 7 deletions

View file

@ -15,7 +15,7 @@ Feature: Passport creation
| Кем выдан | ФСМ | | Кем выдан | ФСМ |
| Код подразделения | 123-456 | | Код подразделения | 123-456 |
When I fill the passport creation form When I fill the passport creation form
When I click the passport creation button When I click "Создать Паспорт"
Then I see the passport page Then I see the passport page
Scenario: only required fields are filled Scenario: only required fields are filled
@ -31,10 +31,10 @@ Feature: Passport creation
| Кем выдан | ФСМ | | Кем выдан | ФСМ |
| Код подразделения | 001-001 | | Код подразделения | 001-001 |
When I fill the passport creation form When I fill the passport creation form
When I click the passport creation button When I click "Создать Паспорт"
Then I see the passport page Then I see the passport page
Scenario: only image is uploaded, no fields are filled Scenario: only image is uploaded, no fields are filled
When I upload "passport_image_1.jpg" as "Изображения" When I upload "passport_image_1.jpg" as "Изображения"
And I click the passport creation button And I click "Создать Паспорт"
Then I am at "/staff/passports/\d+" Then I am at "/staff/passports/\d+"

View file

@ -76,10 +76,6 @@ When 'I fill the passport creation form' do
attach_file 'Изображения', Rails.root.join('fixtures', 'passport_image_1.jpg') attach_file 'Изображения', Rails.root.join('fixtures', 'passport_image_1.jpg')
end end
When 'I click the passport creation button' do
click_on 'Создать Паспорт'
end
Then 'I see the passport page' do Then 'I see the passport page' do
@passport_attributes.each do |key, value| @passport_attributes.each do |key, value|
case key case key