Set default period in new/renew domain forms in registrar area

#495
This commit is contained in:
Artur Beljajev 2017-05-02 14:14:34 +03:00
parent 9b9fb2f8aa
commit 7fe1b641c7
5 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,14 @@
require 'rails_helper'
RSpec.feature 'New domain in registrar area', settings: false do
background do
sign_in_to_registrar_area
end
it 'has default period' do
visit registrar_domains_path
click_link_or_button t('new')
expect(page).to have_field('domain_period', with: Depp::Domain.default_period)
end
end