serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
724 stars 518 forks source link

step message of SelectByValue doesn't report used value #3565

Open TrimbleGlob opened 3 weeks ago

TrimbleGlob commented 3 weeks ago

What happened?

Screenplay @Step annotation of SelectByValue actions reported #value before fix #3394 was applied. That solved the problem partly: no longer is #value shown. But now it shows something like [Ljava.lang.String;@491e2fd.

What did you expect to happen?

The @Step annotation should provide a list of values when the referenced field is an array.

Serenity BDD version

4.2.6

JDK version

OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)

Execution environment

Windows 10 with Chrome 130

How to reproduce the bug.

Same as for #3394 : use a SelectByValue and check reported value in report.

How can we make it happen?

Work on this myself and propose a PR (with Serenity BDD team guidance)