mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 07:22:32 -05:00
archive without confirm
This commit is contained in:
1 parent
994bd1fe5c
commit
66bc8cfb5f
3 files changed
+4
-6
No files matched your search
@@ -44,9 +44,7 @@ RSpec.describe 'Template' do
|
||||
|
||||
it 'archives a template' do
|
||||
expect do
|
||||
accept_confirm('Are you sure?') do
|
||||
click_button 'Archive'
|
||||
end
|
||||
click_button 'Archive'
|
||||
end.to change { Template.active.count }.by(-1)
|
||||
|
||||
expect(page).to have_content('Template has been archived')
|
||||
|
||||
Reference in new issue
Block a user