Commit 1f9e545d authored by Brett Walker's avatar Brett Walker

EE changes for CommonMark source line position

parent f58af3c8
...@@ -77,7 +77,7 @@ describe Projects::MergeRequests::DraftsController do ...@@ -77,7 +77,7 @@ describe Projects::MergeRequests::DraftsController do
expect(json_response['position']).to be_present expect(json_response['position']).to be_present
expect(json_response['file_hash']).to be_present expect(json_response['file_hash']).to be_present
expect(json_response['line_code']).to match(/\w+_\d+_\d+/) expect(json_response['line_code']).to match(/\w+_\d+_\d+/)
expect(json_response['note_html']).to eq('<p dir="auto">This is a unpublished comment</p>') expect(json_response['note_html']).to eq('<p data-sourcepos="1:1-1:29" dir="auto">This is a unpublished comment</p>')
end end
it 'creates a draft note with quick actions' do it 'creates a draft note with quick actions' do
......
...@@ -28,7 +28,7 @@ describe IssuablesHelper do ...@@ -28,7 +28,7 @@ describe IssuablesHelper do
groupPath: @group.path, groupPath: @group.path,
initialTitleHtml: epic.title, initialTitleHtml: epic.title,
initialTitleText: epic.title, initialTitleText: epic.title,
initialDescriptionHtml: '<p dir="auto">epic text</p>', initialDescriptionHtml: '<p data-sourcepos="1:1-1:9" dir="auto">epic text</p>',
initialDescriptionText: 'epic text', initialDescriptionText: 'epic text',
initialTaskStatus: '0 of 0 tasks completed', initialTaskStatus: '0 of 0 tasks completed',
subepicsSupported: Gitlab::Database.postgresql? subepicsSupported: Gitlab::Database.postgresql?
......
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