Downgrade importmap-rails to 1.2

v2.0.1 down not fire turbo:load event in test env, which causes tests to
fail.
Issue reported: https://github.com/rails/importmap-rails/issues/233
This commit is contained in:
2024-01-12 19:30:09 +01:00
parent 4e91c89153
commit a4f113ad48
3 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ class UnitsTest < ApplicationSystemTestCase
fill_in 'unit[name]',
with: [nil, SecureRandom.alphanumeric(rand(1..maxlength['unit[name]']))].sample
assert_difference ->{ Unit.count }, 1 do
click_on t(:add)
click_on t('helpers.submit.create')
end
end