0
0
Fork 0

Convert statuses spec controller->system/request (#33921)

This commit is contained in:
Matt Jankowski 2025-02-18 06:43:49 -05:00 committed by GitHub
parent c7f208eecf
commit fbea3a64cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 179 additions and 194 deletions

View 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