Closed (duplicate)
Project:
Drupal core
Version:
8.1.x-dev
Component:
forms system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Apr 2016 at 23:59 UTC
Updated:
2 May 2016 at 11:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
duaelfrHere is something to start with.
If you look at
\Drupal\form_test\Form\FormTestStatesForm::$field_typesyou'll see a lot of disabled field types with some comments explaining why.Comment #3
duaelfrComment #4
duaelfrBEWARE!
The test passed because some field types are not tested. In fact, #states does not work as expected.
You can manually see what happens by enabling the form_test module and go to form-test/states then check the "trigger" checkbox and look at fields above.
Comment #5
duaelfrVery small progress.
Comment #6
dawehnerSounds like a duplicate of #2702233: [backport] Add JavaScript tests for Form API #states: required, visible, invisible, expanded, checked, unchecked, sorry.
Comment #7
duaelfrJust for the record, here is my last patch updated to remove all the composer and phpunit related stuff.