// Test login routes
$resp = $this->get('/login');
- $resp->assertElementExists('a#social-login-google[href$="/login/service/google"]');
+ $this->withHtml($resp)->assertElementExists('a#social-login-google[href$="/login/service/google"]');
$resp = $this->followingRedirects()->get('/login/service/google');
$resp->assertSee('login-form');
$resp->assertSee(trans('errors.social_account_not_used', ['socialAccount' => 'Google']));
$resp = $this->get('/login');
- $resp->assertElementExists('a#social-login-github[href$="/login/service/github"]');
+ $this->withHtml($resp)->assertElementExists('a#social-login-github[href$="/login/service/github"]');
$resp = $this->followingRedirects()->get('/login/service/github');
$resp->assertSee('login-form');
]);
$resp = $this->actingAs($editor)->get($editor->getEditUrl());
- $resp->assertElementContains('form[action$="/login/service/github/detach"]', 'Disconnect Account');
+ $this->withHtml($resp)->assertElementContains('form[action$="/login/service/github/detach"]', 'Disconnect Account');
$resp = $this->post('/login/service/github/detach');
$resp->assertRedirect($editor->getEditUrl());