lynchdean / pizzapool

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

test_remove_from_order randomly fails #101

Closed lynchdean closed 1 month ago

lynchdean commented 1 month 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 1 month ago

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

lynchdean commented 1 month ago

Fixed in #115