Breaks since 8f83a99
HTML content usually spans multiple lines, with linebreaks and whitespaces being insignificant. However, `text?`, `regex?`, `some-text?`, `some-regex?` apply their validations rigidly. As such, these tests are fragile -- for instance, if someone changes the template file of the underlying content, the tests may fail. With this changeset, the aforementioned tests now replace all one or more consecutive whitespace characters (i.e., ' ', '\t', '\n', etc.) in the text of the page/element with a single space. This feature allows the tests to ignore line breaks and spacing issues in the source text, and thus, making the tests more robust.
When test cases did not result in :error, the :actual values were not being validated due to a misplaced parenthesis! Can you spot the error? Ha ha! As part of this changeset, also fixed minor issues in expected :actual values. I suppose no one caught these as they were not actually being executed? Lastly, refactored check-report's map parameter to expect :valiator-fn key to provide a function to validate the :actual value for :error cases. Overloading the :actual key for both a function (in :error cases) and a value (otherwise) was a bit confusing.
…version profiles and added dev profile with version 1.6
The default method for forms is GET, not POST . This changes kerodon's behaviour to GET rather than POST when a form element doesn't specify a method attribute. : http://www.w3.org/TR/html401/interact/forms.html#h-17.3 : http://www.w3.org/TR/html5/forms.html#attr-fs-method