Commit 0fd3111d authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'sh-fix-flaky-user-posts-notes-spec' into 'master'

Fix flaky spec in user_posts_notes_spec.rb

Closes #238463

See merge request gitlab-org/gitlab!39771
parents 31805a5a b712e50c
......@@ -108,15 +108,14 @@ RSpec.describe 'Merge request > User posts notes', :js do
end
context 'when comment is deleted' do
before do
note.delete
end
it 'shows an error message' do
find('.js-reply-button').click
page.within('.discussion-reply-holder') do
fill_in 'note[note]', with: 'A reply'
note.delete
click_button 'Add comment now'
expect(page).to have_content('Your comment could not be submitted because discussion to reply to cannot be found')
......
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