mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
29 lines
566 B
Ruby
29 lines
566 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.feature 'Editing zone in admin area', settings: false do
|
|
given!(:zone) { create(:zone) }
|
|
|
|
background do
|
|
sign_in_to_admin_area
|
|
end
|
|
|
|
scenario 'updates zone' do
|
|
visit admin_zones_url
|
|
open_form
|
|
submit_form
|
|
|
|
expect(page).to have_text(t('admin.dns.zones.update.updated'))
|
|
end
|
|
|
|
def open_list
|
|
click_link_or_button t('admin.base.menu.zones')
|
|
end
|
|
|
|
def open_form
|
|
click_link_or_button 'admin-edit-zone-btn'
|
|
end
|
|
|
|
def submit_form
|
|
click_link_or_button t('admin.dns.zones.form.update_btn')
|
|
end
|
|
end
|