ScreenPyHQ / screenpy

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

Add `Matches`, `StartsWith`, `EndsWith`, and `ContainsItemMatching` Resolutions. #23

Closed perrygoy closed 1 year ago

perrygoy commented 2 years ago

There is a bit of a tricky sitch with string comparisons right now in ScreenPy, particularly if you're looking for an item in an array that contains a substring. These additional Resolutions should provide all the tools one could want!

Technically we could probably get by with just the regex matching Resolutions, but since regex is itself famously unreadable, i think adding the StartsWith and EndsWith Resolutions for straight string comparisons is a good idea.

perrygoy commented 1 year ago

Closed after merging #39!