Update commits spinach tests related to displaying build status
This commit is contained in:
parent
32d83ee79f
commit
9d2b8326b2
2 changed files with 6 additions and 1 deletions
|
@ -19,7 +19,8 @@ Feature: Project Commits
|
|||
|
||||
Scenario: I browse commit with ci from list
|
||||
Given commit has ci status
|
||||
And I click on commit link
|
||||
And repository contains ".gitlab-ci.yml" file
|
||||
When I click on commit link
|
||||
Then I see commit ci info
|
||||
And I click status link
|
||||
Then I see builds list
|
||||
|
|
|
@ -108,6 +108,10 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
|
|||
create :ci_build, commit: ci_commit
|
||||
end
|
||||
|
||||
step 'repository contains ".gitlab-ci.yml" file' do
|
||||
allow_any_instance_of(Ci::Commit).to receive(:ci_yaml_file).and_return(String.new)
|
||||
end
|
||||
|
||||
step 'I see commit ci info' do
|
||||
expect(page).to have_content "build: pending"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue