mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
parent
9b9fb2f8aa
commit
7fe1b641c7
5 changed files with 47 additions and 0 deletions
14
spec/features/registrar/domains/new_spec.rb
Normal file
14
spec/features/registrar/domains/new_spec.rb
Normal 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
|
18
spec/features/registrar/domains/renew_spec.rb
Normal file
18
spec/features/registrar/domains/renew_spec.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.feature 'Renew domain in registrar area' do
|
||||
given!(:registrar) { create(:registrar) }
|
||||
given!(:user) { create(:api_user, registrar: registrar) }
|
||||
given!(:domain) { create(:domain, registrar: registrar) }
|
||||
|
||||
background do
|
||||
sign_in_to_registrar_area(user: user)
|
||||
end
|
||||
|
||||
it 'has default period' do
|
||||
visit registrar_domains_path
|
||||
click_link_or_button t('renew')
|
||||
|
||||
expect(page).to have_field('period', with: Depp::Domain.default_period)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue