Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/pipelines/pipeline_spec.rb')
-rw-r--r--spec/features/projects/pipelines/pipeline_spec.rb17
1 files changed, 16 insertions, 1 deletions
diff --git a/spec/features/projects/pipelines/pipeline_spec.rb b/spec/features/projects/pipelines/pipeline_spec.rb
index d5739386a30..343c7f53022 100644
--- a/spec/features/projects/pipelines/pipeline_spec.rb
+++ b/spec/features/projects/pipelines/pipeline_spec.rb
@@ -1233,12 +1233,27 @@ RSpec.describe 'Pipeline', :js, feature_category: :projects do
it 'displays the pipeline graph' do
subject
- expect(page).to have_current_path(pipeline_path(pipeline), ignore_query: true)
+ expect(page).to have_current_path(pipeline_path(pipeline))
expect(page).to have_selector('.js-pipeline-graph')
end
end
end
+ describe 'GET /:project/-/pipelines/latest' do
+ let_it_be(:project) { create(:project, :repository) }
+
+ let!(:pipeline) { create(:ci_pipeline, project: project, ref: 'master', sha: project.commit.id) }
+
+ before do
+ visit latest_project_pipelines_path(project)
+ end
+
+ it 'displays the pipeline graph with correct URL' do
+ expect(page).to have_current_path("#{pipeline_path(pipeline)}/")
+ expect(page).to have_selector('.js-pipeline-graph')
+ end
+ end
+
describe 'GET /:project/-/pipelines/:id/dag' do
include_context 'pipeline builds'