Hi,
I was running 1.1-M6 with 2.7.6 with run.mode=test, and had written a
bunch of acceptance tests using Cucumber.
I just upgraded to 1.1-M7 with 2.7.7 and all the name values of form
input tags have changed, failing all my tests :(
Name value with 1.1-M6 + 2.7.6
f00000000010000001_77444531b59f74f18fbde8c81a40a22e862a00cb
Name value with 1.1-M7 + 2.7.7
f00000000010000001_1bceef1fd31e439accaa8462e3dfd1942e1a05ea
Can anyone shed any light on :
1) How are these ids generated
2) Will they always change when we upgrade liftweb/scala versions ?
Cheers,
Ben
> If Lift is running in test mode the element names should be static, right?
Only for the same version of Lift. As David wrote in a (this?) thread,
when in test mode, the id is basically a hash of the stack trace. So
when lift is updated, the ids (most likely) change and you'll have to
update the test cases....not so nice :-)
/Jeppe
Which brings us back to my original point ... how can we preserve
acceptance tests ?
Do we need to have a stack-trace hash on the form ids or can we have a
non-unique-id-through-the-webapp but unique to the form in order to
achieve this.
My newbie knowledge of Lift suggests we can, but I don't have enough
of a big picture view of Lift to give a conclusive answer ...