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: is_representative_toggle_spec.rb
    path of file: ./repos/archivesspace/frontend/spec/features
    
    the code of the file until where you have to start completion: require 'spec_helper'
require 'rails_helper'

describe 'Is Representative Toggle', js: true do
  def toggle_expectations(make_rep_css, make_rep_text, is_rep_css, is_rep_text)
    expect(page).to have_css(is_rep_css, visible: :hidden )
    expect(page).to have_css(make_rep_css, visible: true )

    click_on make_rep_text

    expect(page).to have_
    
  def toggle_expectations(make_rep_css, make_rep_text, is_rep_css, is_rep_text)
    expect(page).to have_css(is_rep_css, visible: :hidden )
    expect(page).to have_css(make_rep_css, visible: true )

    click_on make_rep_text

    expect(page).to have_css(is_rep_css, visible: true )
    expect(page).to have_css(make_rep_css, visible: :hidden )

    click_on is_rep_text

    expect(page).to have_css(is_rep_css, visible: :hidden )
    expect(page).to have_css(make_rep_css, visible: true )
  end