Commit 01452c2d authored by Marin Jankovski's avatar Marin Jankovski

Add help text feature

parent 79a10b15
......@@ -7,3 +7,11 @@ Feature: Admin Settings
Scenario: Change application settings
When I modify settings and save form
Then I should see application settings saved
Scenario: Help text
When I set the help text
Then I should see the help text
And I go to help page
Then I should see the help text
And I logout
Then I should see the help text
......@@ -15,4 +15,21 @@ class Spinach::Features::AdminSettings < Spinach::FeatureSteps
current_application_settings.home_page_url.should == 'https://about.gitlab.com/'
page.should have_content 'Application settings saved successfully'
end
step 'I set the help text' do
fill_in 'Help text', with: help_text
click_button 'Save'
end
step 'I should see the help text' do
page.should have_content help_text
end
step 'I go to help page' do
visit '/help'
end
def help_text
'For help related to GitLab contact Marc Smith at marc@smith.example or find him in office 42.'
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment