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-01-22 18:08:48 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-22 18:08:48 +0300
commit180cd023a11c0eb413ad0de124d9758ea25672bd (patch)
tree63d77be00a22dc637daa0b6d5b644e230f5f4890 /spec/features/error_tracking
parentbe3e24ea3c9f497efde85900df298ce9bc42fce8 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/error_tracking')
-rw-r--r--spec/features/error_tracking/user_sees_error_details_spec.rb32
-rw-r--r--spec/features/error_tracking/user_sees_error_index_spec.rb69
2 files changed, 0 insertions, 101 deletions
diff --git a/spec/features/error_tracking/user_sees_error_details_spec.rb b/spec/features/error_tracking/user_sees_error_details_spec.rb
deleted file mode 100644
index 6f72c44c689..00000000000
--- a/spec/features/error_tracking/user_sees_error_details_spec.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-describe 'View error details page', :js, :use_clean_rails_memory_store_caching, :sidekiq_inline do
- include_context 'sentry error tracking context feature'
-
- context 'with current user as project owner' do
- before do
- sign_in(project.owner)
-
- visit details_project_error_tracking_index_path(project, issue_id: issue_id)
- end
-
- it_behaves_like 'error tracking show page'
- end
-
- context 'with current user as project guest' do
- let_it_be(:user) { create(:user) }
-
- before do
- project.add_guest(user)
- sign_in(user)
-
- visit details_project_error_tracking_index_path(project, issue_id: issue_id)
- end
-
- it 'renders not found' do
- expect(page).to have_content('Page Not Found')
- end
- end
-end
diff --git a/spec/features/error_tracking/user_sees_error_index_spec.rb b/spec/features/error_tracking/user_sees_error_index_spec.rb
deleted file mode 100644
index 0d23df31e29..00000000000
--- a/spec/features/error_tracking/user_sees_error_index_spec.rb
+++ /dev/null
@@ -1,69 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-describe 'View error details page', :js, :use_clean_rails_memory_store_caching, :sidekiq_inline do
- include_context 'sentry error tracking context feature'
-
- let_it_be(:issues_response_body) { fixture_file('sentry/issues_sample_response.json') }
- let_it_be(:issues_response) { JSON.parse(issues_response_body) }
- let(:issues_api_url) { "#{sentry_api_urls.issues_url}?limit=20&query=is:unresolved" }
-
- before do
- stub_request(:get, issues_api_url).with(
- headers: { 'Authorization' => 'Bearer access_token_123' }
- ).to_return(status: 200, body: issues_response_body, headers: { 'Content-Type' => 'application/json' })
- end
-
- context 'with current user as project owner' do
- before do
- sign_in(project.owner)
-
- visit project_error_tracking_index_path(project)
- end
-
- it_behaves_like 'error tracking index page'
- end
-
- # A bug caused the detail link to be broken for all users but the project owner
- context 'with current user as project maintainer' do
- let_it_be(:user) { create(:user) }
-
- before do
- project.add_maintainer(user)
- sign_in(user)
-
- visit project_error_tracking_index_path(project)
- end
-
- it_behaves_like 'error tracking index page'
- end
-
- context 'with error tracking settings disabled' do
- before do
- project_error_tracking_settings.update(enabled: false)
- sign_in(project.owner)
-
- visit project_error_tracking_index_path(project)
- end
-
- it 'renders call to action' do
- expect(page).to have_content('Enable error tracking')
- end
- end
-
- context 'with current user as project guest' do
- let_it_be(:user) { create(:user) }
-
- before do
- project.add_guest(user)
- sign_in(user)
-
- visit project_error_tracking_index_path(project)
- end
-
- it 'renders not found' do
- expect(page).to have_content('Page Not Found')
- end
- end
-end