Close form on Esc key. Localize submit button.

This commit is contained in:
2024-01-06 18:06:36 +01:00
parent ce4770a25c
commit 0801e8059c
6 changed files with 51 additions and 35 deletions

View File

@@ -36,4 +36,10 @@ class UnitsTest < ApplicationSystemTestCase
# assert_selector flash
end
test "close new unit form with escape" do
click_on t('units.index.add_unit')
first('tbody > tr').all(:field).sample.send_keys :escape
within('tbody') { assert_no_selector :fillable_field }
end
end