1
0
Fork 0

Improve features

This commit is contained in:
Alex Kotov 2018-12-13 01:00:16 +05:00
parent 6337519039
commit 63b20603a6
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
4 changed files with 5 additions and 8 deletions

View file

@ -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 "Либертарианская партия России"

View file

@ -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"

View file

@ -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 "Либертарианская партия России"

View file

@ -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|