stormpath / stormpath-framework-tck

HTTP integration tests that ensure a Stormpath web framework integration implements the Stormpath Framework Specification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Input field order

DamirSvrtan opened this issue · comments

Hey Nate,

I'm working on the Rails Framework integration. Rails adds two additional input fields on every form:

  • uf8 - parameter added to forms in order to force Internet Explorer (5, 6, 7 and 8) to encode its parameters as unicode.
  • authenticity_token - CSRF protection.

Since these two fields are on top of every form, my tests are failing on the loginFormShouldBeOrderedCorrectly spec:

java.lang.AssertionError: expected [login] but found [authenticity_token]
commented

Looks like we need to ignore hidden fields.

On it.

A fix is ready under PR #275! Let me know if it works for you =] @DamirSvrtan