Added spinach Tests for pivotaltracker service
This commit is contained in:
parent
435a5ff8a1
commit
64e012a378
2 changed files with 20 additions and 0 deletions
|
@ -18,3 +18,9 @@ Feature: Project Services
|
|||
And I click hipchat service link
|
||||
And I fill hipchat settings
|
||||
Then I should see hipchat service settings saved
|
||||
|
||||
Scenario: Activate pivotaltracker service
|
||||
When I visit project "Shop" services page
|
||||
And I click pivotaltracker service link
|
||||
And I fill pivotaltracker settings
|
||||
Then I should see pivotaltracker service settings saved
|
||||
|
|
|
@ -44,4 +44,18 @@ class ProjectServices < Spinach::FeatureSteps
|
|||
find_field('Room').value.should == 'gitlab'
|
||||
end
|
||||
|
||||
|
||||
And 'I click pivotaltracker service link' do
|
||||
click_link 'PivotalTracker'
|
||||
end
|
||||
|
||||
And 'I fill pivotaltracker settings' do
|
||||
check 'Active'
|
||||
fill_in 'Token', with: 'verySecret'
|
||||
click_button 'Save'
|
||||
end
|
||||
|
||||
Then 'I should see pivotaltracker service settings saved' do
|
||||
find_field('Token').value.should == 'verySecret'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue