2016-02-10 06:20:01 -05:00
|
|
|
Feature: Project Badges Build
|
2016-02-08 06:23:56 -05:00
|
|
|
Background:
|
2016-02-08 07:53:30 -05:00
|
|
|
Given I sign in as a user
|
|
|
|
And I own a project
|
2016-02-08 06:23:56 -05:00
|
|
|
And project has CI enabled
|
|
|
|
And project has a recent build
|
|
|
|
|
|
|
|
Scenario: I want to see a badge for successfully built project
|
2016-02-11 04:27:53 -05:00
|
|
|
Given recent build is successful
|
2016-02-08 06:23:56 -05:00
|
|
|
When I display builds badge for a master branch
|
|
|
|
Then I should see a build success badge
|
|
|
|
|
2016-02-11 04:27:53 -05:00
|
|
|
Scenario: I want to see a badge for project with failed builds
|
2016-02-08 06:23:56 -05:00
|
|
|
Given recent build failed
|
|
|
|
When I display builds badge for a master branch
|
|
|
|
Then I should see a build failed badge
|
2016-02-08 06:42:35 -05:00
|
|
|
|
|
|
|
Scenario: I want to see a badge for project with running builds
|
2016-02-11 04:27:53 -05:00
|
|
|
Given recent build is successful
|
|
|
|
And project has another build that is running
|
2016-02-08 06:42:35 -05:00
|
|
|
When I display builds badge for a master branch
|
|
|
|
Then I should see a build running badge
|
2016-03-04 04:34:35 -05:00
|
|
|
|
|
|
|
Scenario: I want to see a fresh badge on each request
|
|
|
|
Given recent build is successful
|
|
|
|
When I display builds badge for a master branch
|
|
|
|
Then I should see a badge that has not been cached
|