Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FluentScanner adds spaces to step names #265

Open
lukeschafer opened this issue Apr 30, 2018 · 1 comment
Open

FluentScanner adds spaces to step names #265

lukeschafer opened this issue Apr 30, 2018 · 1 comment

Comments

@lukeschafer
Copy link

lukeschafer commented Apr 30, 2018

Since Humanize is called after string.Format, data is getting spaces added. E.g. (first param is an Expression<Func<,>>)

[StepTitle("Then the element [{0}] has text '{1}'", false)]

Results in

And then the element [page => page . title ] has text ' me '

So you can see spaces randomly in the expression's .ToString() and around the apostrophes, and the expression is lower-cased

@gdereese
Copy link

I'm experiencing this as well using the StepTitleAttribute on my reusable step methods and the Fluent API.

My expectation is that if that attribute is used to specify a title/format, that is used verbatim. Otherwise, the system would perform the existing logic to auto-generate the title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants