mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
parent
ccf08ded60
commit
b67f2f1e97
3 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= zone.origin %></td>
|
<td><%= link_to zone.origin, edit_admin_zone_path(zone), id: 'admin-edit-zone-btn' %></td>
|
||||||
<td>
|
<td>
|
||||||
<%= link_to t('.edit_btn'), edit_admin_zone_path(zone), class: 'btn btn-xs btn-primary' %>
|
|
||||||
<%= link_to t('.generate_zone_file_btn'),
|
<%= link_to t('.generate_zone_file_btn'),
|
||||||
admin_zonefiles_path(origin: zone.origin),
|
admin_zonefiles_path(origin: zone.origin),
|
||||||
method: 'post', class: 'btn btn-xs btn-primary' %>
|
method: 'post', class: 'btn btn-xs btn-primary' %>
|
||||||
|
|
|
@ -29,5 +29,4 @@ en:
|
||||||
update_btn: Update zone
|
update_btn: Update zone
|
||||||
|
|
||||||
zone:
|
zone:
|
||||||
edit_btn: Edit
|
|
||||||
generate_zone_file_btn: Generate zone file
|
generate_zone_file_btn: Generate zone file
|
||||||
|
|
|
@ -8,7 +8,7 @@ RSpec.feature 'Editing zone in admin area', settings: false do
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'updates zone' do
|
scenario 'updates zone' do
|
||||||
open_list
|
visit admin_zones_url
|
||||||
open_form
|
open_form
|
||||||
submit_form
|
submit_form
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ RSpec.feature 'Editing zone in admin area', settings: false do
|
||||||
end
|
end
|
||||||
|
|
||||||
def open_form
|
def open_form
|
||||||
click_link_or_button t('admin.dns.zones.zone.edit_btn')
|
click_link_or_button 'admin-edit-zone-btn'
|
||||||
end
|
end
|
||||||
|
|
||||||
def submit_form
|
def submit_form
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue