I’m trying to write a Cucumber scenario that requires me to have a logged in user – that would normally be quite simple but I’m only using OpenID authentication (curtosy of the authentication plugin). However after digging through the open_id_authentication plugins guts I’m not sure how I could achieve this within Cucumber.
Share
I’ve figured out a way, if you place this in your features/support/env.rb:
Then you can just do something like this in your appropriate step:
I’m just completely clobbering the open id auth for the cucumber features, obviously if I need instances where there is failed login I could do that based on the supplied identity_url.