ScreenPyHQ / screenpy

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

Allow `Resolvables` to be passed into Resolutions? #85

Open perrygoy opened 1 year ago

perrygoy commented 1 year ago

From a conversation on #83, when Resolutions inherited from BaseResolution (which inherited from pyhamcrest.BaseMatcher), we could pass Resolutions into Resolutions and pyhamcrest could do some neat magic. Now that we've done away with the BaseResolution, that magic is gone.

Is there a way we could detect whether a user has given us a Resolvable somewhere in their expected condition, and resolve that before passing it to pyhamcrest?

bandophahita commented 1 year ago

I have to compliment @jardilac91; I would not have thought to use the resolutions that way. It's rather clever.

perrygoy commented 1 year ago

Likewise! Very clever usage, i hope we can bring it back.