Clearer names for nested Targets in reports #3678
john-phillips-uspto
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using net.serenitybdd.screenplay.targets.Target you can nest one Target inside another by using either:
Either of these will find target1 first, then target1 inside target1's context.
What I've noticed is that if you use the first method then only the name of target1 is recorded in the reports (i.e. "she sees target1 that is displayed").
Similarly, when using the second method only the name of target2 is recorded (i.e. "she sees target2 that is displayed").
Would there be any utility in modifying the reporting so that both names are recorded?
Something like "she sees target2 in/inside target1 that is displayed", or "she sees target1 -> target2 that is displayed"?
I can possibly see an issue with the step ending up being very long if you have a long chain of targets. Do we have any sort of sense on what a "normal" number of nestings would be?
Beta Was this translation helpful? Give feedback.
All reactions