mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Story#110308584 - update tests of features/blocked and reserved domains
This commit is contained in:
parent
24fa4e93cc
commit
f8702395af
2 changed files with 15 additions and 9 deletions
|
@ -18,12 +18,15 @@ feature 'BlockedDomain', type: :feature do
|
|||
d.valid?
|
||||
d.errors.full_messages.should match_array([])
|
||||
|
||||
fill_in 'blocked_domains', with: "ftp.ee\ncache.ee"
|
||||
click_button 'Save'
|
||||
domains = %w(ftp.ee cache.ee)
|
||||
domains.each do |domain|
|
||||
click_link "New"
|
||||
fill_in 'Name', with: domain
|
||||
click_button 'Save'
|
||||
end
|
||||
|
||||
page.should have_content('Record updated')
|
||||
page.should have_content('ftp.ee')
|
||||
page.should have_content('cache.ee')
|
||||
|
||||
BlockedDomain.pluck(:name).should include(*domains)
|
||||
|
||||
d.valid?
|
||||
d.errors.full_messages.should match_array(["Data management policy violation: Domain name is blocked [name]"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue