-
Notifications
You must be signed in to change notification settings - Fork 73
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
Twitter API with socialite login test fails (Route Not Found Exception) #65
Comments
are you sure those are GET related routes? Or POST? I would assume either
?? |
yes I am sure this is my behat settings default:
autoload: # contexts path
'': %paths.base%/tests/Features/bootstrap
extensions:
tPayne\BehatMailExtension\ServiceContainer\MailExtension: ~
Laracasts\Behat: ~
Behat\MinkExtension:
base_url: http://example.com
show_cmd: google-chrome-stable %s
browser_name: chrome
javascript_session: selenium2
default_session: laravel
laravel: ~
selenium2:
browser: chrome
wd_host: 'http://127.0.0.1:4444/wd/hub'
suites:
posts_features:
paths: [%paths.base%/tests/Features/Posts] # suite feature paths
contexts: [PostsContext] # suite feature contexts
auth_features:
paths: [%paths.base%/tests/Features/Auth] # suite feature paths
contexts: [AuthContext] # suite feature contexts and those are the related routes definitions Route::get('/auth/login/{provider}', 'Auth\LoginController@socialLogin')
->name('auth.social-login');
Route::get('/auth/login/{provider}/handler', 'Auth\LoginController@socialProviderHandler')
->name('auth.social-login-handler'); and this is the route method i use to get user access token from twitter public function socialLogin($provider) {
return Socialite::driver($provider)->redirect();
} I know it is not problem with my application . because it is working manuallyby the way I used selenium as work around this . but it is not the best choice for testing some thing like this . In your expert opinion when working with bdd and laravel . can you tell me better way to interact with other sites (like twitter) without use selenium ? just laravel , mink and behat ? |
hi
I am writes feature tests with behat , mink and laravel . to auto authenticate laravel user with twitter api .
when I run the feature scenario . I get
this is my feature test
and this the failing step definition
next is the error page screen shot
when I use the normal manual process it is opens the page . and I see the button 'Authorize app' button
can any one help me with this ?
The text was updated successfully, but these errors were encountered: