Add feature "Main page"
This commit is contained in:
parent
7f733b76d9
commit
cf9c1ee7f3
2 changed files with 21 additions and 0 deletions
4
features/main_page.feature
Normal file
4
features/main_page.feature
Normal file
|
@ -0,0 +1,4 @@
|
|||
Feature: Main page
|
||||
Scenario: It works
|
||||
When I visit main page
|
||||
Then I see main page
|
17
features/step_definitions/stepdefs.rb
Normal file
17
features/step_definitions/stepdefs.rb
Normal 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
|
Reference in a new issue