Merge remote-tracking branch 'parent/main' into upstream-20240906

This commit is contained in:
KMY 2024-09-09 08:47:15 +09:00
commit 218cb37fe3
176 changed files with 750 additions and 603 deletions

23
spec/system/media_spec.rb Normal file
View file

@ -0,0 +1,23 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'Media' do
describe 'Player page' do
context 'when signed in' do
before { sign_in Fabricate(:user) }
it 'visits the media player page and renders the media' do
status = Fabricate :status
media = Fabricate :media_attachment, type: :video
status.media_attachments << media
visit medium_player_path(media)
expect(page)
.to have_css('body', class: 'player')
.and have_css('div[data-component="Video"]')
end
end
end
end