Remove unnecessary step definition
This commit is contained in:
parent
a85a53e20d
commit
852ffb2652
2 changed files with 3 additions and 7 deletions
|
@ -15,7 +15,7 @@ Feature: Passport creation
|
|||
| Кем выдан | ФСМ |
|
||||
| Код подразделения | 123-456 |
|
||||
When I fill the passport creation form
|
||||
When I click the passport creation button
|
||||
When I click "Создать Паспорт"
|
||||
Then I see the passport page
|
||||
|
||||
Scenario: only required fields are filled
|
||||
|
@ -31,10 +31,10 @@ Feature: Passport creation
|
|||
| Кем выдан | ФСМ |
|
||||
| Код подразделения | 001-001 |
|
||||
When I fill the passport creation form
|
||||
When I click the passport creation button
|
||||
When I click "Создать Паспорт"
|
||||
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
|
||||
And I click "Создать Паспорт"
|
||||
Then I am at "/staff/passports/\d+"
|
||||
|
|
|
@ -76,10 +76,6 @@ When 'I fill the passport creation form' do
|
|||
attach_file 'Изображения', Rails.root.join('fixtures', 'passport_image_1.jpg')
|
||||
end
|
||||
|
||||
When 'I click the passport creation button' do
|
||||
click_on 'Создать Паспорт'
|
||||
end
|
||||
|
||||
Then 'I see the passport page' do
|
||||
@passport_attributes.each do |key, value|
|
||||
case key
|
||||
|
|
Reference in a new issue