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: capybara_helper.rb
    path of file: ./repos/gollum/test
    
    the code of the file until where you have to start completion: require_relative 'helper'

require 'selenium-webdriver'
require 'capybara/dsl'

Selenium::WebDriver::Chrome.path = ENV['CHROME_PATH'] if ENV['CHROME_PATH']

CAPYBARA_DRIVER =
  if ENV['CI']
    :selenium_chrome_headless
  else
    ENV.fetch('CAPYBARA_DRIVER', :selenium_chrome).to_sym
  end

Capybara.default_driver = CAPYBARA_DRIVER
Capybara.enable_aria_label = true

if ENV['GOLLUM_CAPYBARA_URL']
  Capybara.configure do |config|
    config.run_server = false
    
def create_page(title:, content:)
  visit "/"

  click_on "New"
  fill_in "Page Name", with: title
  click_on "OK"

  assert_includes page.text, "Create New Page"

  page_title_field = find "input#gollum-editor-page-title"
  assert_includes page_title_field.value, title

  within "div.ace_content" do
    send_keys content
    assert page.text, content
  end

  assert page.current_path.start_with? "/gollum/create"

  click_on "Save"

  using_wait_time 10 do
    escaped_title = title.gsub(" ", "%20")
    assert page.current_path, "/#{escaped_title}.md"
  end
end