Spec failure in `spec/features/merge_request/batch_comments_spec.rb` | Merge request > Batch comments Feature is enabled thread is resolved publishes comment right away and unresolves the thread

Job #1487059055 failed for 432f80e4:

Trace

Failures:
  1) Merge request > Batch comments Feature is enabled thread is resolved publishes comment right away and unresolves the thread
     Failure/Error:
           page.within(first('.diff-files-holder .discussion-reply-holder')) do
             find_field('Reply…', match: :first).click
       
             fill_in('note_note', with: text)
       
             if resolve
               page.check('Resolve thread')
             end
       
             if unresolve
     Capybara::ExpectationNotMet:
       expected to find css ".diff-files-holder .discussion-reply-holder" at least 1 time but there were no matches
     # ./spec/features/merge_request/batch_comments_spec.rb:280:in `write_reply_to_discussion'
     # ./spec/features/merge_request/batch_comments_spec.rb:216:in `block (4 levels) in <top (required)>'
     # ./spec/spec_helper.rb:390:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
     # ./spec/spec_helper.rb:381:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:377:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/application_context.rb:31:in `with_raw_context'
     # ./spec/spec_helper.rb:377:in `block (2 levels) in <top (required)>'