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: source_editor_spec_helpers.rb
    path of file: ./repos/gitlabhq/spec/support/helpers/features
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# These helpers help you interact withi
    
    def editor_set_value(value)
      editor = find('.monaco-editor')
      uri = editor['data-uri']
      execute_script("localMonaco.getModel('#{uri}').setValue('#{escape_javascript(value)}')")

      # We only check that the first line is present because when the content is long,
      # only a part of the text will be rendered in the DOM due to scrolling
      page.has_selector?('.gl-source-editor .view-lines', text: value.lines.first)
    end