w-a-r-m-inventory-system / Food-Pantry-Inventory

New Inventory System for Westerville Area Resource Ministry
MIT License
23 stars 20 forks source link

01 manual box management #254

Closed babarehner closed 4 years ago

babarehner commented 4 years ago

Selenium fuctional test for Manual Box Management. Runs through all links in Manual Box Management (None in Pallet Management). Does not cover all edge cases but allows me to record traversal. Travis helped me edit utility.py so test would run with superuser permissions. Firefox browser required on test machine. Uses geckodriver-autoinstaller-> https://pypi.org/project/geckodriver-autoinstaller/. As a functional test it slows down the test suite so you may want to run it separately 'python manage.py test fpiweb.tests.test_func_ManualBoxManagement' or set up the test suite to run without it.

babarehner commented 4 years ago

Attempt to see if test_func_ManualBoxManagement.py will pass in headless mode. Changed functional Selenium Firefox browser test to determine if test will pass in headless mode after pull request.

babarehner commented 4 years ago

Runs in headless mode and shows that it works correctly. Check was successful in headless mode and the failure above was a test that was supposed to show a failure. Am going to get with Travis on this