OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/spec/support/edit_fields/project_status_field.rb

19 lines
379 B

require 'support/components/ng_select_autocomplete_helpers'
require_relative './edit_field'
class ProjectStatusField < EditField
include ::Components::NgSelectAutocompleteHelpers
def input_selector
'.ng-select.project-status'
end
def field_type
input_selector
end
def set_to(status_name)
page.find('.ng-input input').set("#{status_name}\n")
end
end