Class: ExampleAppShowcaseValidationHintsTest

Inherits:
ExampleAppIntegrationTestCase show all
Defined in:
lib/installer_templates/example_app_tests/test/integration/example_app_showcase_validation_hints_test.rb

Overview

Regression for the 8.1.20 validation-hint fixes on FormElementShowcase:

* count  (integer_field, `numericality: { only_integer: true }`)
* price  (decimal_field, bare `numericality: true`)
* amount (money_field,  money-rails `monetize :amount_cents`, which
          registers a MoneyValidator on `:amount`)

Before 8.1.20 a bare ‘numericality: true` emitted ZERO hint messages (validation_hints dead-code bug), so `price` rendered an EMPTY `validation-hints-source` div, and `amount` had no i18n mapping for the money validator key. The show panel must now render a NON-EMPTY `<ul class=“validation-hints-list”>` for all three.