0

I want to write simple test like:

Given I am on "/"
Then I should be on "/login"

I want ignore trailing slash on assertion, so, if user redirected to /login/, assertion should not fail.

Now it fail. How can I fix it?

Matt
  • 14,906
  • 27
  • 99
  • 149
Artur Eshenbrener
  • 1,850
  • 2
  • 17
  • 24

1 Answers1

0

One way of doing this is to override the method for the I should be on step and remove the last / if needed|found.

lauda
  • 4,153
  • 2
  • 14
  • 28