Convert statuses spec controller->system/request (#33921)
		
	This commit is contained in:
		
					parent
					
						
							
								c7f208eecf
							
						
					
				
			
			
				commit
				
					
						fbea3a64cc
					
				
			
		
					 3 changed files with 179 additions and 194 deletions
				
			
		
							
								
								
									
										15
									
								
								spec/system/statuses_spec.rb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								spec/system/statuses_spec.rb
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| # frozen_string_literal: true | ||||
| 
 | ||||
| require 'rails_helper' | ||||
| 
 | ||||
| RSpec.describe 'Status page' do | ||||
|   let(:status) { Fabricate :status } | ||||
| 
 | ||||
|   it 'visits the status page and renders the web app' do | ||||
|     visit short_account_status_path(account_username: status.account.username, id: status.id) | ||||
| 
 | ||||
|     expect(page) | ||||
|       .to have_css('noscript', text: /Mastodon/) | ||||
|       .and have_css('body', class: 'app-body') | ||||
|   end | ||||
| end | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue