correction du test sur l'état de l'input
This commit is contained in:
parent
88710969bb
commit
2a955a0f8c
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ RSpec.describe Attachment::EditComponent, type: :component do
|
|||
let(:attachment) { nil }
|
||||
|
||||
it 'renders a form field for uploading a file' do
|
||||
expect(subject).to have_selector('input[type=file]:not(.hidden)')
|
||||
expect(subject).to have_selector('input[type=file]:not([disabled])')
|
||||
end
|
||||
|
||||
it 'renders max size' do
|
||||
|
@ -37,8 +37,8 @@ RSpec.describe Attachment::EditComponent, type: :component do
|
|||
expect(subject).to have_content(attachment.filename.to_s)
|
||||
end
|
||||
|
||||
it 'hides the file field by default' do
|
||||
expect(subject).to have_selector('input[type=file].hidden')
|
||||
it 'disabled the file field by default' do
|
||||
expect(subject).to have_selector('input[type=file][disabled]')
|
||||
end
|
||||
|
||||
it 'shows the Delete button by default' do
|
||||
|
|
Loading…
Reference in a new issue