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/features/custom_fields/create_float_spec.rb

29 lines
660 B

require 'spec_helper'
require 'support/pages/custom_fields'
describe 'custom fields', js: true do
let(:user) { FactoryGirl.create :admin }
let(:cf_page) { Pages::CustomFields.new }
before do
login_as(user)
end
describe "creating a new float custom field" do
before do
cf_page.visit!
click_on "Create a new custom field"
end
it "creates a new float custom field" do
cf_page.set_name "New Field"
cf_page.select_format "Float"
cf_page.set_default_value "20.34"
click_on "Save"
expect(page).to have_text("Successful creation")
expect(page).to have_text("New Field")
end
end
end