Commit eb0c7092 authored by Jarka Kadlecova's avatar Jarka Kadlecova

fix code style

parent cca51002
...@@ -97,8 +97,8 @@ describe 'Discussion Lock', :js do ...@@ -97,8 +97,8 @@ describe 'Discussion Lock', :js do
it 'the user can not create a comment' do it 'the user can not create a comment' do
page.within('#notes') do page.within('#notes') do
expect(page).not_to have_selector('js-main-target-form') expect(page).not_to have_selector('js-main-target-form')
expect(page.find('.disabled-comment')). expect(page.find('.disabled-comment'))
to have_content('This issue is locked. Only project members can comment.') .to have_content('This issue is locked. Only project members can comment.')
end end
end end
end end
......
...@@ -40,8 +40,8 @@ describe 'Discussion Lock', :js do ...@@ -40,8 +40,8 @@ describe 'Discussion Lock', :js do
it 'the user can not create a comment' do it 'the user can not create a comment' do
page.within('.issuable-discussion #notes') do page.within('.issuable-discussion #notes') do
expect(page).not_to have_selector('js-main-target-form') expect(page).not_to have_selector('js-main-target-form')
expect(page.find('.disabled-comment')). expect(page.find('.disabled-comment'))
to have_content('This merge request is locked. Only project members can comment.') .to have_content('This merge request is locked. Only project members can comment.')
end end
end 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