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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-13 12:08:52 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-13 12:08:52 +0300
commitf0707f413ce49b5712fca236b950acbec029be1e (patch)
treee28b49d89d4cf2422ee0066600c0ea045dcf7669 /spec/features
parent31a49d924418aa9983ae30be28e6e304a30939e1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects/pipelines/pipeline_spec.rb16
1 files changed, 15 insertions, 1 deletions
diff --git a/spec/features/projects/pipelines/pipeline_spec.rb b/spec/features/projects/pipelines/pipeline_spec.rb
index 8d9a397de9a..63c0695fe95 100644
--- a/spec/features/projects/pipelines/pipeline_spec.rb
+++ b/spec/features/projects/pipelines/pipeline_spec.rb
@@ -359,13 +359,27 @@ describe 'Pipeline', :js do
context 'test tabs' do
let(:pipeline) { create(:ci_pipeline, :with_test_reports, project: project) }
- it 'shows badge counter in Tests tab' do
+ before do
visit_pipeline
wait_for_requests
+ end
+ it 'shows badge counter in Tests tab' do
expect(pipeline.test_reports.total_count).to eq(4)
expect(page.find('.js-test-report-badge-counter').text).to eq(pipeline.test_reports.total_count.to_s)
end
+
+ it 'does not call test_report.json endpoint by default', :js do
+ expect(page).to have_selector('.js-no-tests-to-show', visible: :all)
+ end
+
+ it 'does call test_report.json endpoint when tab is selected', :js do
+ find('.js-tests-tab-link').click
+ wait_for_requests
+
+ expect(page).to have_content('Test suites')
+ expect(page).to have_selector('.js-tests-detail', visible: :all)
+ end
end
context 'retrying jobs' do