Commit ba99dfcd authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'assert-that-mr-diff-is-highlighted' into 'master'

Add spec to ensure MR diffs are highlighted

Closes #50793

See merge request gitlab-org/gitlab-ce!21410
parents 21b7e203 8d400982
......@@ -122,7 +122,7 @@ describe 'Merge request > User sees diff', :js do
}
CONTENT
file_name = 'xss_file.txt'
file_name = 'xss_file.rs'
create_file('master', file_name, file_content)
merge_request = create(:merge_request, source_project: project)
......@@ -133,6 +133,7 @@ describe 'Merge request > User sees diff', :js do
visit diffs_project_merge_request_path(project, merge_request)
expect(page).to have_text("function foo<input> {")
expect(page).to have_css(".line[lang='rust'] .k")
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment