From 091f6387e4a9602e3213bbcfff1d51209d7efed4 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Tue, 7 Nov 2017 11:38:23 +0000 Subject: Fix commit pipeline showing wrong status --- spec/features/projects/commit/mini_pipeline_graph_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spec/features/projects/commit') diff --git a/spec/features/projects/commit/mini_pipeline_graph_spec.rb b/spec/features/projects/commit/mini_pipeline_graph_spec.rb index 807a2189cc4..91282063a8d 100644 --- a/spec/features/projects/commit/mini_pipeline_graph_spec.rb +++ b/spec/features/projects/commit/mini_pipeline_graph_spec.rb @@ -12,6 +12,13 @@ feature 'Mini Pipeline Graph in Commit View', :js do end let(:build) { create(:ci_build, pipeline: pipeline) } + it 'display icon with status' do + build.run + visit project_commit_path(project, project.commit.id) + + expect(page).to have_selector('.ci-status-icon-running') + end + it 'displays a mini pipeline graph' do build.run visit project_commit_path(project, project.commit.id) -- cgit v1.2.1