update test

This commit is contained in:
Benoit Queyron 2024-06-27 17:44:22 +02:00
parent 4bee40caa4
commit fc385208db
No known key found for this signature in database
GPG key ID: 9E723480C7317E22

View file

@ -75,8 +75,8 @@ RSpec.describe Attachment::MultipleComponent, type: :component do
context 'max attachments' do context 'max attachments' do
let(:kwargs) { { max: 1 } } let(:kwargs) { { max: 1 } }
it 'does not render visible input file where max attachments has been reached' do it 'renders a disabled input file where max attachments has been reached' do
expect(subject).to have_selector('.hidden input[type=file]') expect(subject).to have_selector('input[type=file][disabled]')
end end
end end