Closed paulgibbs closed 5 years ago
iAmAnonymousUser() in the UserContext throws a DriverException if the browser is not open when this step definition is used.
DriverException
That the method handles failure quietly, because it doesn't matter here.
Add try/catch here or in logOut()!.
logOut()
Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant. Given I am an anonymous user When I do anything Then I get an exception before I get here.
Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant.
Given I am an anonymous user
When I do anything
Then I get an exception before I get here.
Expected behaviour
iAmAnonymousUser() in the UserContext throws a
DriverException
if the browser is not open when this step definition is used.Current behaviour
That the method handles failure quietly, because it doesn't matter here.
Possible solution
Add try/catch here or in
logOut()
!.Steps to reproduce