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-04-24 21:17:30 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-24 21:17:30 +0300
commit0bf82aa5cb3b1ed826dd5c0d46331e17aa60d9e9 (patch)
treeee5a760877cce0189cc8e765a912a06942f3e4de /spec/features/markdown
parentefbf661c4224d481c57d0346e26983a805e5ec93 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/markdown')
-rw-r--r--spec/features/markdown/sandboxed_mermaid_spec.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/features/markdown/sandboxed_mermaid_spec.rb b/spec/features/markdown/sandboxed_mermaid_spec.rb
index 0282d02d809..0ecba8df88b 100644
--- a/spec/features/markdown/sandboxed_mermaid_spec.rb
+++ b/spec/features/markdown/sandboxed_mermaid_spec.rb
@@ -53,4 +53,28 @@ RSpec.describe 'Sandboxed Mermaid rendering', :js, feature_category: :team_plann
end
end
end
+
+ context 'in a project milestone' do
+ let(:milestone) { create(:project_milestone, project: project, description: description) }
+
+ it 'includes mermaid frame correctly' do
+ visit(project_milestone_path(project, milestone))
+
+ wait_for_requests
+
+ expect(page.html).to include(expected)
+ end
+ end
+
+ context 'in a group milestone' do
+ let(:group_milestone) { create(:group_milestone, description: description) }
+
+ it 'includes mermaid frame correctly' do
+ visit(group_milestone_path(group_milestone.group, group_milestone))
+
+ wait_for_requests
+
+ expect(page.html).to include(expected)
+ end
+ end
end