ScreenPyHQ / screenpy

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

Create "Each" #79

Closed bandophahita closed 1 year ago

bandophahita commented 1 year ago

Consider this code:

VISIBLE = (
    (Element(TARGET1), Visible()),
    (Element(TARGET2), Visible()),
)
admin.shall(Eventually(SeeAllOf(*VISIBLE)))

What if we had a determiner word to use instead?

admin.shall(Eventually(SeeAllOf(Each(VISIBLE))))
perrygoy commented 1 year ago

I'm not sure how this would work... or if it would be clearer than the *VISIBLE approach.

Do you have an idea of how to implement this?

bandophahita commented 1 year ago

Yeah, I have no idea how that would be possible. Must have been good drugs that day.