mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
parent
5fdc1938af
commit
5a533e09bf
44 changed files with 1027 additions and 375 deletions
25
spec/features/admin/billing/prices/edit_spec.rb
Normal file
25
spec/features/admin/billing/prices/edit_spec.rb
Normal file
|
@ -0,0 +1,25 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.feature 'Editing price in admin area', settings: false do
|
||||
given!(:price) { create(:price) }
|
||||
|
||||
background do
|
||||
sign_in_to_admin_area
|
||||
end
|
||||
|
||||
scenario 'updates price' do
|
||||
visit admin_prices_url
|
||||
open_form
|
||||
submit_form
|
||||
|
||||
expect(page).to have_text(t('admin.billing.prices.update.updated'))
|
||||
end
|
||||
|
||||
def open_form
|
||||
click_link_or_button t('admin.billing.prices.price.edit_btn')
|
||||
end
|
||||
|
||||
def submit_form
|
||||
click_link_or_button t('admin.billing.prices.form.update_btn')
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue