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

require 'spec_helper'

RSpec.describe 'Developer creates tag', :js, feature_ca
    
  def select_ref(ref:)
    ref_selector = '.ref-selector'
    find(ref_selector).click
    wait_for_requests
    page.within(ref_selector) do
      fill_in _('Search by Git revision'), with: ref
      wait_for_requests
      find('li', text: ref, match: :prefer_exact).click
    end
  end