The form examples has several sections. The current tests cover the tutorial, the wizard, and the element examples, but not the #states example.

Comments

rfay’s picture

Status: Active » Postponed

Unfortunately, #states is pure javascript, and we don't have any kind of testing framework that can handle that sort of thing. #237566: Automated JavaScript unit testing framework and other (stalled) issues have some potential, as well as the Selenium module.

jn2’s picture

Thanks for the info. Glad I didn't start trying to figure out how to write a test for that yet.

mparker17’s picture

I think this was done by @rfay in 7.x-1.x commit 8190ddfe14458dca652a7c12a9a6b66753756f61 . Can this issue be closed?

Looks like I misread the issue title... this story is about adding tests not examples.

My apologies for the noise.

rfay’s picture

Status: Postponed » Closed (won't fix)

Since there is no way to do tests for pure client-side stuff using our existing capabilities, marking "won't fix".

Great to have you working here, @mparker17!