ScreenPyHQ / screenpy

Screenplay pattern base for Python automated UI test suites.
MIT License
28 stars 4 forks source link

Eventually should keep the unique errors in the same order they occurred. #60

Closed bandophahita closed 1 year ago

bandophahita commented 1 year ago

Eventually stores all unique exceptions that occur and outputs them in one go at the end. The problem is they are stored in a set which does not preserve the order of occurrence.

DeliveryError: Marcel tried to Eventually do thing that works after a bit 5 times over 5 seconds, but got:
    AssertionError: This is going to Fail 4
    AssertionError: This is going to Fail 2
    AssertionError: This is going to Fail 5
    AssertionError: This is going to Fail 3
    AssertionError: This is going to Fail 1
perrygoy commented 1 year ago

Thanks for the fix, @bandophahita!