Open webteckie opened 8 years ago
I noticed this a while ago too, I bought it up in slack but didn't create an issue for some reason. Anyway, here's a little more info:
To reproduce, start test server and create a new datetime. Paste in 2016-01-01 as the date and 12:00:00 am as the time. Add a name and click save. You'll get an error: FieldA is invalid
.
Interestingly, if you click the now
button first, but then overwrite the filled values with the above, it works. Very strange.
@jstockwin doing triage Wondering if this has been fixed, or is still an issue?
@Noviny I don't remember this being fixed, however the test that @webteckie mentions in this issue has been enabled again (this line is commented out, which was done in this refactoring commit).
It might just be that the new way of doing the tests doesn't quite trigger this bug, or it may have been fixed - not sure. @webteckie might remember?
@jstockwin @Noviny the test most likely still fails. It may be working because there's a bunch of test code commented out. Need to revisit/uncomment the code to see what's going on.
Steps to reproduce the behavior
Edit test/e2e/adminUI/tests/group005Fields/testDatetimeField.js as follows:
change
'@disabled': true
to'@disabled': false
Run the test:
node test/e2e/server.js --env default --config test/e2e/adminUI/nightwatch.json --test test/e2e/adminUI/tests/group005Fields/testDatetimeField
Expected behavior
The test should pass.
Actual behavior
The test fails.
NOTE: once the test passes please leave it enabled!