Merge branch '42798-fix-hardcoded-id-in-spinach' into 'master'

Resolve "features/project/commits/commits.feature is failing on master"

Closes #42798

See merge request gitlab-org/gitlab-ce!16940
This commit is contained in:
Rémy Coutable 2018-02-06 13:14:08 +00:00
commit 41b5bb5748

View file

@ -154,8 +154,8 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
step 'commit has ci status' do step 'commit has ci status' do
@project.enable_ci @project.enable_ci
pipeline = create :ci_pipeline, project: @project, sha: sample_commit.id @pipeline = create(:ci_pipeline, project: @project, sha: sample_commit.id)
create :ci_build, pipeline: pipeline create(:ci_build, pipeline: @pipeline)
end end
step 'repository contains ".gitlab-ci.yml" file' do step 'repository contains ".gitlab-ci.yml" file' do
@ -163,7 +163,7 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
end end
step 'I see commit ci info' do step 'I see commit ci info' do
expect(page).to have_content "Pipeline #1 pending" expect(page).to have_content "Pipeline ##{@pipeline.id} pending"
end end
step 'I search "submodules" commits' do step 'I search "submodules" commits' do