summaryrefslogtreecommitdiff
path: root/features/project/builds/badge.feature
blob: 64263b2f538410542b9c27d757dc1a35a1850835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Feature: Project Builds Badge
  Background:
    Given project exists in some group namespace
    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

  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