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/issues/user_comments_on_issue_spec.rb')
-rw-r--r--spec/features/issues/user_comments_on_issue_spec.rb14
1 files changed, 1 insertions, 13 deletions
diff --git a/spec/features/issues/user_comments_on_issue_spec.rb b/spec/features/issues/user_comments_on_issue_spec.rb
index a719263f092..a1e7c007b90 100644
--- a/spec/features/issues/user_comments_on_issue_spec.rb
+++ b/spec/features/issues/user_comments_on_issue_spec.rb
@@ -10,7 +10,6 @@ RSpec.describe "User comments on issue", :js do
let(:user) { create(:user) }
before do
- stub_feature_flags(sandboxed_mermaid: false)
project.add_guest(user)
sign_in(user)
@@ -42,17 +41,6 @@ RSpec.describe "User comments on issue", :js do
expect(page.find('pre code').text).to eq code_block_content
end
- it "renders HTML content as text in Mermaid" do
- html_content = "<img onerror=location=`javascript\\u003aalert\\u0028document.domain\\u0029` src=x>"
- mermaid_content = "graph LR\n B-->D(#{html_content});"
- comment = "```mermaid\n#{mermaid_content}\n```"
-
- add_note(comment)
-
- expect(page.find('svg.mermaid')).not_to have_content 'javascript'
- within('svg.mermaid') { expect(page).not_to have_selector('img') }
- end
-
it 'opens autocomplete menu for quick actions and have `/label` first choice' do
project.add_maintainer(user)
create(:label, project: project, title: 'label')
@@ -67,7 +55,7 @@ RSpec.describe "User comments on issue", :js do
it "edits comment" do
add_note("# Comment with a header")
- page.within(".note-body > .note-text") do
+ page.within(".note-body .note-text") do
expect(page).to have_content("Comment with a header").and have_no_css("#comment-with-a-header")
end