28 Commits

Author SHA1 Message Date
5fff9adf4d Delete Units respecting foreign key constraint 2025-01-16 20:46:22 +01:00
b9d979ad0c Fix tests 2024-12-30 00:19:16 +01:00
8552571526 Disable Unit destuction for base units with subunits
Closes #40
2024-12-28 23:57:47 +01:00
bd40727231 Focus forms properly on open and close
Closes #44
2024-12-28 15:16:37 +01:00
8f85432982 Silence empty tests 2024-12-22 01:33:39 +01:00
d726e92445 Allow opening multiple new/edit forms
Closes #30
2024-12-21 17:52:45 +01:00
f0dab7a5f9 Fix Units new/edit display on validation errors
Add test_new_and_edit_on_validation_error
Closes #41
2024-12-17 01:53:25 +01:00
f472526aa8 Change variable name 2024-12-17 00:14:34 +01:00
e15b983b56 Avoid duplicated symbols, check created record attributes 2024-12-15 23:36:24 +01:00
30ee4a861e Define LINK_LABELS once. Generate Unicode random strings. 2024-12-14 19:40:01 +01:00
dcffa86e93 Rename add -> new in test descriptions 2024-12-12 00:53:23 +01:00
d5719b1e9d Fill multiplier field, confirm Add button disabled 2024-12-12 00:44:26 +01:00
3a25c1dbd0 Equally sample add unit/add subunit/edit links for test 2024-12-12 00:35:11 +01:00
bb4fbb3adc Refine "add and edit disallow opening multiple forms" test 2024-12-10 18:11:13 +01:00
dc92a333be Fix UnitsTest#test_add_unit 2024-12-10 01:18:27 +01:00
f3f0b9dc9e Fix UnitsiTest#test_index 2024-12-09 20:00:14 +01:00
40808639cc Update tests to new schema 2024-12-08 15:29:01 +01:00
ebae0334d9 Test refinements 2024-03-16 16:07:50 +01:00
8b81ae2dc5 Test Unit form opening/closing 2024-02-13 01:04:27 +01:00
1227c54e0e Fix flashes display after grid introduction
Closes #5
2024-01-17 21:57:18 +01:00
651534134e Refine tests 2024-01-17 05:41:08 +01:00
7cfa3a0af0 Refine Unit tests 2024-01-17 04:25:32 +01:00
a4f113ad48 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
2024-01-12 19:30:09 +01:00
0801e8059c Close form on Esc key. Localize submit button. 2024-01-06 18:06:36 +01:00
d1bfabc105 Better string input randomization 2024-01-06 01:05:28 +01:00
98c8fb9346 Validate Unit string lengths 2024-01-05 21:32:59 +01:00
d28ef26dc5 Manage focus on form show/hide 2024-01-05 21:07:12 +01:00
32b8daf29d Add Unit system tests 2024-01-05 04:16:38 +01:00