Add ability to ask for numerical value on drop.
If the input value (with optional margin) is set for a drop item, an input field is shown and focused when the user drops the item on the correct zone. The value is submitted on field blur. If correct (within the margin), the field is colored green. If the value is not correct, the field is colored red. In either case, the field gets disabled and user cannot try again until resetting the exercise. The exercise is not considered finished until all required input fields are filled. If the item has an input set, the user only gets points for the item if the input value is within the correct margin. The patch includes changes to the testing infrastructure. Instead of having to checkout the `xblock-sdk` repository and set `xblock-drag-and-drop-v2` to run within it, the `xblock-sdk` repository has been added to the test requirements. A barebone django app that loads the workbench to run integration tests has been created inside the tests folder. All test dependencies have been explicitly pinned in `test/requirements.txt`. Assuming you have Firefox installed, running the tests should be as simple as `pip install -r tests/requirements.txt` in a fresh virtual environment and then `tests/manage.py test`.
Showing
tests/manage.py
0 → 100755
tests/settings.py
0 → 100644
tests/urls.py
0 → 100644
Please
register
or
sign in
to comment