mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
fix refactor complete button
This commit is contained in:
1 parent
04129ded90
commit
e378025a2d
4 files changed
+55
-60
No files matched your search
@@ -1286,17 +1286,19 @@ RSpec.describe 'Signing Form' do
|
||||
submission.update(template_fields: template.fields)
|
||||
end
|
||||
|
||||
it 'shows header complete button and hides decline after filling required fields' do
|
||||
it 'shows header complete button and hides download after filling required fields' do
|
||||
visit submit_form_path(slug: submitter.slug)
|
||||
|
||||
expect(page).to have_button('Decline')
|
||||
expect(page).to have_css('download-button[aria-label="Download"]', visible: true)
|
||||
expect(page).not_to have_css('#complete_button_container button')
|
||||
|
||||
fill_in 'First Name', with: 'John Doe'
|
||||
click_button 'next'
|
||||
|
||||
expect(page).to have_css('#complete_button_container button')
|
||||
expect(page).not_to have_button('Decline')
|
||||
expect(page).to have_button('Decline')
|
||||
expect(page).to have_css('download-button[aria-label="Download"]', visible: :hidden)
|
||||
end
|
||||
|
||||
it 'completes the form via header complete button skipping optional fields' do
|
||||
|
||||
Reference in new issue
Block a user