lynchdean / pizzapool

A carpool style pizza ordering web app
http://pizzapool.pythonanywhere.com/example/
1 stars 0 forks source link

test_remove_from_order randomly fails #101

Open lynchdean opened 2 days ago

lynchdean commented 2 days ago

events.test_selenium.MySeleniumTests.test_remove_from_order fails on random occasions

Output:

FAIL: test_remove_from_order (events.test_selenium.MySeleniumTests.test_remove_from_order)

Traceback (most recent call last): File "/Users/dean/Projects/pizzapool/events/test_selenium.py", line 134, in test_remove_from_order self.assertEqual(url, f'{self.live_server_url}/{self.org_path}/{self.event.sqid}/') AssertionError: 'http://localhost:58008/test-org/4/delete/?next=/test-org/AXs1igzRC6/' != 'http://localhost:58008/test-org/AXs1igzRC6/'

lynchdean commented 2 days ago

Possibly need to introduce a slight delay as it is grabbing the url from the previous page