fix ajax not adding onclick listener when loading dynamically
This commit is contained in:
parent
90c5450525
commit
06aa20ad0f
12 changed files with 111 additions and 104 deletions
|
|
@ -47,6 +47,7 @@ feature GroupOrderInvoice, type: :feature, js: true do
|
|||
click_link_or_button 'Toggle details'
|
||||
expect(page).to have_selector(:link_or_button, I18n.t('activerecord.attributes.group_order_invoice.links.generate'))
|
||||
click_link_or_button I18n.t('activerecord.attributes.group_order_invoice.links.generate')
|
||||
sleep 1
|
||||
expect(GroupOrderInvoice.all.count).to eq(1)
|
||||
end
|
||||
|
||||
|
|
@ -62,6 +63,7 @@ feature GroupOrderInvoice, type: :feature, js: true do
|
|||
expect(page).to have_selector(:link_or_button, I18n.t('activerecord.attributes.group_order_invoice.links.generate_with_date'))
|
||||
|
||||
click_link_or_button I18n.t('activerecord.attributes.group_order_invoice.links.generate_with_date')
|
||||
sleep 1
|
||||
expect(GroupOrderInvoice.all.count).to eq(1)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue