mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							25 lines
						
					
					
						
							661 B
						
					
					
				
			
		
		
	
	
							25 lines
						
					
					
						
							661 B
						
					
					
				| # frozen_string_literal: true
 | |
| 
 | |
| require 'rails_helper'
 | |
| 
 | |
| RSpec.describe 'Submission Preview' do
 | |
|   let(:account) { create(:account) }
 | |
|   let(:user) { create(:user, account:) }
 | |
|   let(:template) { create(:template, account:, author: user) }
 | |
| 
 | |
|   context 'when not submitted' do
 | |
|     let(:submission) { create(:submission, template:, created_by_user: user) }
 | |
|     let(:submitters) { template.submitters.map { |s| create(:submitter, submission:, uuid: s['uuid']) } }
 | |
| 
 | |
|     before do
 | |
|       sign_in(user)
 | |
| 
 | |
|       visit submissions_preview_path(slug: submission.slug)
 | |
|     end
 | |
| 
 | |
|     it 'completes the form' do
 | |
|       expect(page).to have_content('Not completed')
 | |
|     end
 | |
|   end
 | |
| end
 |