2016-02-10 11:20:01 +00:00
|
|
|
Feature: Project Badges Build
|
2016-02-08 11:23:56 +00:00
|
|
|
Background:
|
2016-02-08 12:53:30 +00:00
|
|
|
Given I sign in as a user
|
|
|
|
And I own a project
|
2016-02-08 11:23:56 +00:00
|
|
|
And project has CI enabled
|
|
|
|
And project has a recent build
|
|
|
|
|
|
|
|
Scenario: I want to see a badge for successfully built project
|
|
|
|
Given recent build is successfull
|
|
|
|
When I display builds badge for a master branch
|
|
|
|
Then I should see a build success badge
|
|
|
|
|
|
|
|
Scenario: I want to see a badge for project with filed builds
|
|
|
|
Given recent build failed
|
|
|
|
When I display builds badge for a master branch
|
|
|
|
Then I should see a build failed badge
|
2016-02-08 11:42:35 +00:00
|
|
|
|
|
|
|
Scenario: I want to see a badge for project with running builds
|
|
|
|
Given recent build is successfull
|
|
|
|
And project has an another build that is running
|
|
|
|
When I display builds badge for a master branch
|
|
|
|
Then I should see a build running badge
|