Improve features
This commit is contained in:
parent
6337519039
commit
63b20603a6
4 changed files with 5 additions and 8 deletions
|
@ -3,4 +3,4 @@ Feature: Main page
|
|||
Given I visit "/"
|
||||
|
||||
Scenario: It works
|
||||
Then I see main page
|
||||
Then I see CSS "h1" with text "Либертарианская партия России"
|
||||
|
|
|
@ -9,5 +9,5 @@ Feature: Sign in
|
|||
| Email | user@example.com |
|
||||
| Пароль | q1w2e3r4t5y6 |
|
||||
And I click the form button "Войти"
|
||||
Then I see main page
|
||||
Then I see CSS "h1" with text "Либертарианская партия России"
|
||||
And I am logged in as "user@example.com"
|
||||
|
|
|
@ -9,4 +9,4 @@ Feature: Sign up
|
|||
| Пароль | q1w2e3r4t5y6 |
|
||||
| Подтверждение пароля | q1w2e3r4t5y6 |
|
||||
And I click the form button "Регистрация"
|
||||
Then I see main page
|
||||
Then I see CSS "h1" with text "Либертарианская партия России"
|
||||
|
|
|
@ -40,11 +40,8 @@ Then 'I see text {string}' do |text|
|
|||
expect(page).to have_content text
|
||||
end
|
||||
|
||||
Then 'I see main page' do
|
||||
expect(page).to have_css(
|
||||
'h1',
|
||||
text: I18n.translate('title'),
|
||||
)
|
||||
Then 'I see CSS {string} with text {string}' do |selector, text|
|
||||
expect(page).to have_css selector, text: text
|
||||
end
|
||||
|
||||
Given 'I want to create the following passport:' do |table|
|
||||
|
|
Reference in a new issue