2012-09-27 20:52:08 +00:00
|
|
|
Feature: Project Hooks
|
|
|
|
Background:
|
|
|
|
Given I sign in as a user
|
|
|
|
And I own project "Shop"
|
|
|
|
|
|
|
|
Scenario: I should see hook list
|
|
|
|
Given project has hook
|
|
|
|
When I visit project hooks page
|
|
|
|
Then I should see project hook
|
|
|
|
|
|
|
|
Scenario: I add new hook
|
|
|
|
Given I visit project hooks page
|
|
|
|
When I submit new hook
|
|
|
|
Then I should see newly created hook
|
|
|
|
|
2015-08-11 06:59:40 +00:00
|
|
|
Scenario: I add new hook with SSL verification enabled
|
|
|
|
Given I visit project hooks page
|
|
|
|
When I submit new hook with SSL verification enabled
|
|
|
|
Then I should see newly created hook with SSL verification enabled
|
|
|
|
|
2012-09-27 20:52:08 +00:00
|
|
|
Scenario: I test hook
|
|
|
|
Given project has hook
|
|
|
|
And I visit project hooks page
|
|
|
|
When I click test hook button
|
|
|
|
Then hook should be triggered
|
|
|
|
|
2014-07-27 20:26:23 +00:00
|
|
|
Scenario: I test a hook on empty project
|
|
|
|
Given I own empty project with hook
|
|
|
|
And I visit project hooks page
|
|
|
|
When I click test hook button
|
|
|
|
Then I should see hook error message
|
2014-07-29 09:49:46 +00:00
|
|
|
|
|
|
|
Scenario: I test a hook on down URL
|
|
|
|
Given project has hook
|
|
|
|
And I visit project hooks page
|
|
|
|
When I click test hook button with invalid URL
|
|
|
|
Then I should see hook service down error message
|