Open kuro610 opened 2 years ago
@dboehmer The update of the purchase list editor makes 1 test failing "change item total" from t/controller_Item.t. As far as I understand the test it should work, but it could be that the test references a wrong form in line 52. So could you please check this.-
The project page shows an empty alert box for this test project when not logged in:
@dboehmer The update of the purchase list editor makes 1 test failing "change item total" from t/controller_Item.t. As far as I understand the test it should work, but it could be that the test references a wrong form in line 52. So could you please check this.-
I tried to change arguments to submit_form_ok
to the form with ID total-1
but it still doesn’t work. Maybe WWW::Mechanize doesn’t like the empty <form>
s with form elements outside an attribute form="total-1"
? I am not used to that syntax, too.
Before the update the form only had a name ("total") (which would also not be unique when we have multiple items on our purchase list) and no id. I added the id so that I can use the form elements outside with the form attribute. The unit conversion form works also with this approach (form elements outside the form), but maybe this form is not covered by any test.
If I test the total form by hand it works.
Here are some information about the form attribute on form elements.
The project page shows an empty alert box for this test project when not logged in:
I removed the empty alert box.
I fixed the test. It looks like that Mechanize didn't support the form attribute on inputs.
I think now is the branch ready to be merged
Closes #130 Closes #131 Closes #133