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: project_details_spec.rb
    path of file: ./repos/openproject/modules/dashboards/spec/features
    
    the code of the file until where you have to start completion: #-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2024 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License ve
    
  def change_cf_value(cf, old_value, new_value)
    # Open description field
    cf.activate!
    sleep(0.1)

    # Change the value
    cf.expect_value(old_value)
    cf.set_value new_value
    cf.save! unless cf.field_type === 'create-autocompleter'

    # The edit field is toggled and the value saved.
    expect(page).to have_content(new_value)
    expect(page).to have_selector(cf.selector)
    expect(page).to have_no_selector(cf.input_selector)
  end