You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: user_posts_diff_notes_spec.rb
    path of file: ./repos/gitlabhq/spec/features/merge_request
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Merge request > User posts diff notes', :js, feature_category: :code_review_workflow do
  include MergeRequestDiffHelpers
  include Spec::Suppor
    
  def assert_comment_persistence(line_holder, asset_form_reset:)
    notes_holder_saved = line_holder.find(:xpath, notes_holder_input_xpath)

    expect(notes_holder_saved[:class]).not_to include('note-edit-form')
    expect(notes_holder_saved).to have_content test_note_comment

    assert_form_is_reset if asset_form_reset
  end