mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
parent
18be71b519
commit
7d94273a5e
6 changed files with 3 additions and 64 deletions
|
@ -1,23 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.feature 'Deleting price in admin area', settings: false do
|
||||
given!(:price) { create(:price) }
|
||||
|
||||
background do
|
||||
sign_in_to_admin_area
|
||||
end
|
||||
|
||||
scenario 'deletes price' do
|
||||
visit admin_prices_url
|
||||
open_form
|
||||
click_link_or_button t('admin.billing.prices.edit.delete_btn')
|
||||
|
||||
expect(page).to have_text(t('admin.billing.prices.destroy.destroyed'))
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def open_form
|
||||
click_link_or_button 'admin-edit-price-btn'
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue