fix(filters): drop down list filters can have much longer values.
Notre infra supporte des urls d'au moins 8000 caractères, probablement plus encore, donc on est large.
This commit is contained in:
parent
bac54ba214
commit
1c32a30b80
3 changed files with 11 additions and 7 deletions
|
@ -906,12 +906,12 @@ describe Instructeurs::ProceduresController, type: :controller do
|
|||
|
||||
subject do
|
||||
column = procedure.find_column(label: "Nom").id
|
||||
post :add_filter, params: { procedure_id: procedure.id, column:, value: "n" * 110, statut: "a-suivre" }
|
||||
post :add_filter, params: { procedure_id: procedure.id, column:, value: "n" * 4100, statut: "a-suivre" }
|
||||
end
|
||||
|
||||
it 'should render the error' do
|
||||
subject
|
||||
expect(flash.alert[0]).to include("Le filtre Nom est trop long (maximum: 100 caractères)")
|
||||
expect(flash.alert[0]).to include("Le filtre Nom est trop long (maximum: 4048 caractères)")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue