diff options
Diffstat (limited to 'spec/features/issues/discussion_lock_spec.rb')
-rw-r--r-- | spec/features/issues/discussion_lock_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/issues/discussion_lock_spec.rb b/spec/features/issues/discussion_lock_spec.rb index fb9addff1a2..04d59854ddc 100644 --- a/spec/features/issues/discussion_lock_spec.rb +++ b/spec/features/issues/discussion_lock_spec.rb @@ -28,7 +28,7 @@ RSpec.describe 'Discussion Lock', :js, feature_category: :team_planning do click_button('Lock') end - expect(find('#notes')).to have_content('locked this issue') + expect(find('#notes')).to have_content('locked the discussion in this issue') end end @@ -46,7 +46,7 @@ RSpec.describe 'Discussion Lock', :js, feature_category: :team_planning do click_button('Unlock') end - expect(find('#notes')).to have_content('unlocked this issue') + expect(find('#notes')).to have_content('unlocked the discussion in this issue') expect(find('.issuable-sidebar')).to have_content('Unlocked') end @@ -101,7 +101,7 @@ RSpec.describe 'Discussion Lock', :js, feature_category: :team_planning do page.within('#notes') do expect(page).not_to have_selector('js-main-target-form') expect(page.find('.disabled-comments')) - .to have_content('This issue is locked. Only project members can comment.') + .to have_content('The discussion in this issue is locked. Only project members can comment.') end end end |