1
0
Fork 0

Add feature "Main page"

This commit is contained in:
Alex Kotov 2018-11-30 12:33:37 +05:00
parent 7f733b76d9
commit cf9c1ee7f3
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,4 @@
Feature: Main page
Scenario: It works
When I visit main page
Then I see main page

View file

@ -0,0 +1,17 @@
# frozen_string_literal: true
When 'I visit main page' do
visit '/'
end
Then 'I see main page' do
expect(page).to have_css(
'h1',
text: I18n.translate('home.show.primary_title'),
)
expect(page).to have_css(
'h1 small',
text: I18n.translate('home.show.secondary_title'),
)
end