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>2023-02-24 18:09:55 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-24 18:09:55 +0300
commitfd9a56d56f84b36779fc4db2da37204c22585fe4 (patch)
treec0b1ec9aa2f49aa5623bae34dfef4e286caf56b3 /spec/features/markdown
parent552e85a58645e5321b33dacc8d410fa88fb75a85 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/markdown')
-rw-r--r--spec/features/markdown/observability_spec.rb20
1 files changed, 5 insertions, 15 deletions
diff --git a/spec/features/markdown/observability_spec.rb b/spec/features/markdown/observability_spec.rb
index 0b380c74777..e57bfafe05e 100644
--- a/spec/features/markdown/observability_spec.rb
+++ b/spec/features/markdown/observability_spec.rb
@@ -45,7 +45,11 @@ RSpec.describe 'Observability rendering', :js, feature_category: :metrics do
end
end
- shared_examples 'does not embed observability in issues and MRs' do
+ context 'when feature flag is disabled' do
+ before do
+ stub_feature_flags(observability_group_tab: false)
+ end
+
context 'when embedding in an issue' do
let(:issue) do
create(:issue, project: project, description: observable_url)
@@ -72,18 +76,4 @@ RSpec.describe 'Observability rendering', :js, feature_category: :metrics do
it_behaves_like 'does not embed observability'
end
end
-
- context 'when user is not a developer of the embeded group' do
- it_behaves_like 'does not embed observability in issues and MRs' do
- let_it_be(:observable_url) { "https://observe.gitlab.com/1234/some-dashboard" }
- end
- end
-
- context 'when feature flag is disabled' do
- before do
- stub_feature_flags(observability_group_tab: false)
- end
-
- it_behaves_like 'does not embed observability in issues and MRs'
- end
end