{"action":"closed","number":401,"pull_request":{"url":"https://api.github.com/repos/portabilis/i-educar/pulls/401","id":212479906,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNDc5OTA2","html_url":"https://github.com/portabilis/i-educar/pull/401","diff_url":"https://github.com/portabilis/i-educar/pull/401.diff","patch_url":"https://github.com/portabilis/i-educar/pull/401.patch","issue_url":"https://api.github.com/repos/portabilis/i-educar/issues/401","number":401,"state":"closed","locked":false,"title":"Laravel Dusk para testes de browser","user":{"login":"edersoares","id":957395,"node_id":"MDQ6VXNlcjk1NzM5NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/957395?v=4","gravatar_id":"","url":"https://api.github.com/users/edersoares","html_url":"https://github.com/edersoares","followers_url":"https://api.github.com/users/edersoares/followers","following_url":"https://api.github.com/users/edersoares/following{/other_user}","gists_url":"https://api.github.com/users/edersoares/gists{/gist_id}","starred_url":"https://api.github.com/users/edersoares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edersoares/subscriptions","organizations_url":"https://api.github.com/users/edersoares/orgs","repos_url":"https://api.github.com/users/edersoares/repos","events_url":"https://api.github.com/users/edersoares/events{/privacy}","received_events_url":"https://api.github.com/users/edersoares/received_events","type":"User","site_admin":false},"body":"# Laravel Dusk\r\n\r\nDusk é um pacote que permite a criação de testes automatizados de browser e não necessita a instalação de JDK ou Selenium para a realização dos testes, ao invés disso, Dusk usa uma instalação \r\nstandalone do [ChromeDriver](http://chromedriver.chromium.org/).\r\n\r\nEste PR é direcionado a branch `laravel` e está incluído:\r\n- Instalação do [Laravel Dusk](https://laravel.com/docs/5.6/dusk)  versão `4.0` (apenas em desenvolvimento)\r\n- Controller para permitir uma autenticação \"fake\" e permitir os testes usando Dusk em páginas restritas.\r\n- Testes de browser para página de Login.\r\n- Testes de browser para todas as rotas dentro de `intranet`.\r\n- Testes de browser para todas as rotas dos menus.\r\n- Correção de erros em diversos arquivos/rotas do código legado.\r\n- Comandos para criar automaticamente os testes de aceitação.\r\n- Ajuste no arquivo `phinx.php.example` para facilitar o processo de instalação.\r\n\r\n## Como utilizar\r\n\r\nLeia a [documentação](https://laravel.com/docs/5.6/dusk) oficial do Laravel Dusk para aprender como criar testes de browser para o i-Educar.\r\n\r\nPara utilizar os testes já criados, basta seguir o roteiro de instalação do `readme` e dentro do container `php` executar o comando para criar os testes para as rotas atuais do i-Educar:\r\n\r\n```terminal \r\nphp artisan legacy:make:tests\r\n``` \r\n\r\nSaia do container `php` e execute em sua máquina para rodar os testes:\r\n```terminal\r\nphp artisan dusk\r\n```\r\n\r\n**Importante:** você precisa executar o comando `php artisan dusk` a partir da sua máquina e não dentro de um container.\r\n\r\nTestes de browser são demorados pois é feito através do ChromeDriver a simulação de um usuário utilizando um navegador para acessar as páginas do i-Educar. \r\n\r\nAbaixo imagem dos testes executados.\r\n\r\n<img width=\"566\" alt=\"screen shot 2018-08-31 at 15 32 55\" src=\"https://user-images.githubusercontent.com/957395/44932672-c637f880-ad3c-11e8-9c68-3ef94f7af0d5.png\">\r\n\r\nEstes testes garantem que as páginas (rotas) estão disponíveis e são exibidas para o usuário mesmo utilizando a estrutura Laravel.\r\n\r\nTestes de funcionalidade ainda deverão ser criados para uma maior confiabilidade.\r\n\r\n### Como ajudar\r\n\r\nBaixar esta branch e seguir o passo a passo do `readme` executando os testes e após deixar o seu feedback.\r\n\r\nObrigado.\r\n\r\nRefs #217 #389.","created_at":"2018-08-31T19:52:51Z","updated_at":"2018-09-04T14:57:27Z","closed_at":"2018-09-04T14:57:26Z","merged_at":"2018-09-04T14:57:26Z","merge_commit_sha":"af56ab709a0d25d11451d1eb227558cb334a96d4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/portabilis/i-educar/pulls/401/commits","review_comments_url":"https://api.github.com/repos/portabilis/i-educar/pulls/401/comments","review_comment_url":"https://api.github.com/repos/portabilis/i-educar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/portabilis/i-educar/issues/401/comments","statuses_url":"https://api.github.com/repos/portabilis/i-educar/statuses/a16fc87636c411a9898aadea5f18c1f03cc1aa7f","head":{"label":"portabilis:laravel-dusk","ref":"laravel-dusk","sha":"a16fc87636c411a9898aadea5f18c1f03cc1aa7f","user":{"login":"portabilis","id":721282,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMTI4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/721282?v=4","gravatar_id":"","url":"https://api.github.com/users/portabilis","html_url":"https://github.com/portabilis","followers_url":"https://api.github.com/users/portabilis/followers","following_url":"https://api.github.com/users/portabilis/following{/other_user}","gists_url":"https://api.github.com/users/portabilis/gists{/gist_id}","starred_url":"https://api.github.com/users/portabilis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portabilis/subscriptions","organizations_url":"https://api.github.com/users/portabilis/orgs","repos_url":"https://api.github.com/users/portabilis/repos","events_url":"https://api.github.com/users/portabilis/events{/privacy}","received_events_url":"https://api.github.com/users/portabilis/received_events","type":"Organization","site_admin":false},"repo":{"id":7943685,"node_id":"MDEwOlJlcG9zaXRvcnk3OTQzNjg1","name":"i-educar","full_name":"portabilis/i-educar","owner":{"login":"portabilis","id":721282,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMTI4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/721282?v=4","gravatar_id":"","url":"https://api.github.com/users/portabilis","html_url":"https://github.com/portabilis","followers_url":"https://api.github.com/users/portabilis/followers","following_url":"https://api.github.com/users/portabilis/following{/other_user}","gists_url":"https://api.github.com/users/portabilis/gists{/gist_id}","starred_url":"https://api.github.com/users/portabilis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portabilis/subscriptions","organizations_url":"https://api.github.com/users/portabilis/orgs","repos_url":"https://api.github.com/users/portabilis/repos","events_url":"https://api.github.com/users/portabilis/events{/privacy}","received_events_url":"https://api.github.com/users/portabilis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/portabilis/i-educar","description":"Lançando o maior software livre educacional do Brasil!","fork":false,"url":"https://api.github.com/repos/portabilis/i-educar","forks_url":"https://api.github.com/repos/portabilis/i-educar/forks","keys_url":"https://api.github.com/repos/portabilis/i-educar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/portabilis/i-educar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/portabilis/i-educar/teams","hooks_url":"https://api.github.com/repos/portabilis/i-educar/hooks","issue_events_url":"https://api.github.com/repos/portabilis/i-educar/issues/events{/number}","events_url":"https://api.github.com/repos/portabilis/i-educar/events","assignees_url":"https://api.github.com/repos/portabilis/i-educar/assignees{/user}","branches_url":"https://api.github.com/repos/portabilis/i-educar/branches{/branch}","tags_url":"https://api.github.com/repos/portabilis/i-educar/tags","blobs_url":"https://api.github.com/repos/portabilis/i-educar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/portabilis/i-educar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/portabilis/i-educar/git/refs{/sha}","trees_url":"https://api.github.com/repos/portabilis/i-educar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/portabilis/i-educar/statuses/{sha}","languages_url":"https://api.github.com/repos/portabilis/i-educar/languages","stargazers_url":"https://api.github.com/repos/portabilis/i-educar/stargazers","contributors_url":"https://api.github.com/repos/portabilis/i-educar/contributors","subscribers_url":"https://api.github.com/repos/portabilis/i-educar/subscribers","subscription_url":"https://api.github.com/repos/portabilis/i-educar/subscription","commits_url":"https://api.github.com/repos/portabilis/i-educar/commits{/sha}","git_commits_url":"https://api.github.com/repos/portabilis/i-educar/git/commits{/sha}","comments_url":"https://api.github.com/repos/portabilis/i-educar/comments{/number}","issue_comment_url":"https://api.github.com/repos/portabilis/i-educar/issues/comments{/number}","contents_url":"https://api.github.com/repos/portabilis/i-educar/contents/{+path}","compare_url":"https://api.github.com/repos/portabilis/i-educar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/portabilis/i-educar/merges","archive_url":"https://api.github.com/repos/portabilis/i-educar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/portabilis/i-educar/downloads","issues_url":"https://api.github.com/repos/portabilis/i-educar/issues{/number}","pulls_url":"https://api.github.com/repos/portabilis/i-educar/pulls{/number}","milestones_url":"https://api.github.com/repos/portabilis/i-educar/milestones{/number}","notifications_url":"https://api.github.com/repos/portabilis/i-educar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/portabilis/i-educar/labels{/name}","releases_url":"https://api.github.com/repos/portabilis/i-educar/releases{/id}","deployments_url":"https://api.github.com/repos/portabilis/i-educar/deployments","created_at":"2013-01-31T19:25:31Z","updated_at":"2018-09-01T03:10:51Z","pushed_at":"2018-09-04T14:57:26Z","git_url":"git://github.com/portabilis/i-educar.git","ssh_url":"git@github.com:portabilis/i-educar.git","clone_url":"https://github.com/portabilis/i-educar.git","svn_url":"https://github.com/portabilis/i-educar","homepage":"","size":109974,"stargazers_count":127,"watchers_count":127,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":308,"mirror_url":null,"archived":false,"open_issues_count":48,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":308,"open_issues":48,"watchers":127,"default_branch":"master"}},"base":{"label":"portabilis:laravel","ref":"laravel","sha":"f77ad755faa9be5d716cdda134f65b128f2e7877","user":{"login":"portabilis","id":721282,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMTI4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/721282?v=4","gravatar_id":"","url":"https://api.github.com/users/portabilis","html_url":"https://github.com/portabilis","followers_url":"https://api.github.com/users/portabilis/followers","following_url":"https://api.github.com/users/portabilis/following{/other_user}","gists_url":"https://api.github.com/users/portabilis/gists{/gist_id}","starred_url":"https://api.github.com/users/portabilis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portabilis/subscriptions","organizations_url":"https://api.github.com/users/portabilis/orgs","repos_url":"https://api.github.com/users/portabilis/repos","events_url":"https://api.github.com/users/portabilis/events{/privacy}","received_events_url":"https://api.github.com/users/portabilis/received_events","type":"Organization","site_admin":false},"repo":{"id":7943685,"node_id":"MDEwOlJlcG9zaXRvcnk3OTQzNjg1","name":"i-educar","full_name":"portabilis/i-educar","owner":{"login":"portabilis","id":721282,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMTI4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/721282?v=4","gravatar_id":"","url":"https://api.github.com/users/portabilis","html_url":"https://github.com/portabilis","followers_url":"https://api.github.com/users/portabilis/followers","following_url":"https://api.github.com/users/portabilis/following{/other_user}","gists_url":"https://api.github.com/users/portabilis/gists{/gist_id}","starred_url":"https://api.github.com/users/portabilis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portabilis/subscriptions","organizations_url":"https://api.github.com/users/portabilis/orgs","repos_url":"https://api.github.com/users/portabilis/repos","events_url":"https://api.github.com/users/portabilis/events{/privacy}","received_events_url":"https://api.github.com/users/portabilis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/portabilis/i-educar","description":"Lançando o maior software livre educacional do Brasil!","fork":false,"url":"https://api.github.com/repos/portabilis/i-educar","forks_url":"https://api.github.com/repos/portabilis/i-educar/forks","keys_url":"https://api.github.com/repos/portabilis/i-educar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/portabilis/i-educar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/portabilis/i-educar/teams","hooks_url":"https://api.github.com/repos/portabilis/i-educar/hooks","issue_events_url":"https://api.github.com/repos/portabilis/i-educar/issues/events{/number}","events_url":"https://api.github.com/repos/portabilis/i-educar/events","assignees_url":"https://api.github.com/repos/portabilis/i-educar/assignees{/user}","branches_url":"https://api.github.com/repos/portabilis/i-educar/branches{/branch}","tags_url":"https://api.github.com/repos/portabilis/i-educar/tags","blobs_url":"https://api.github.com/repos/portabilis/i-educar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/portabilis/i-educar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/portabilis/i-educar/git/refs{/sha}","trees_url":"https://api.github.com/repos/portabilis/i-educar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/portabilis/i-educar/statuses/{sha}","languages_url":"https://api.github.com/repos/portabilis/i-educar/languages","stargazers_url":"https://api.github.com/repos/portabilis/i-educar/stargazers","contributors_url":"https://api.github.com/repos/portabilis/i-educar/contributors","subscribers_url":"https://api.github.com/repos/portabilis/i-educar/subscribers","subscription_url":"https://api.github.com/repos/portabilis/i-educar/subscription","commits_url":"https://api.github.com/repos/portabilis/i-educar/commits{/sha}","git_commits_url":"https://api.github.com/repos/portabilis/i-educar/git/commits{/sha}","comments_url":"https://api.github.com/repos/portabilis/i-educar/comments{/number}","issue_comment_url":"https://api.github.com/repos/portabilis/i-educar/issues/comments{/number}","contents_url":"https://api.github.com/repos/portabilis/i-educar/contents/{+path}","compare_url":"https://api.github.com/repos/portabilis/i-educar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/portabilis/i-educar/merges","archive_url":"https://api.github.com/repos/portabilis/i-educar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/portabilis/i-educar/downloads","issues_url":"https://api.github.com/repos/portabilis/i-educar/issues{/number}","pulls_url":"https://api.github.com/repos/portabilis/i-educar/pulls{/number}","milestones_url":"https://api.github.com/repos/portabilis/i-educar/milestones{/number}","notifications_url":"https://api.github.com/repos/portabilis/i-educar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/portabilis/i-educar/labels{/name}","releases_url":"https://api.github.com/repos/portabilis/i-educar/releases{/id}","deployments_url":"https://api.github.com/repos/portabilis/i-educar/deployments","created_at":"2013-01-31T19:25:31Z","updated_at":"2018-09-01T03:10:51Z","pushed_at":"2018-09-04T14:57:26Z","git_url":"git://github.com/portabilis/i-educar.git","ssh_url":"git@github.com:portabilis/i-educar.git","clone_url":"https://github.com/portabilis/i-educar.git","svn_url":"https://github.com/portabilis/i-educar","homepage":"","size":109974,"stargazers_count":127,"watchers_count":127,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":308,"mirror_url":null,"archived":false,"open_issues_count":48,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":308,"open_issues":48,"watchers":127,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/portabilis/i-educar/pulls/401"},"html":{"href":"https://github.com/portabilis/i-educar/pull/401"},"issue":{"href":"https://api.github.com/repos/portabilis/i-educar/issues/401"},"comments":{"href":"https://api.github.com/repos/portabilis/i-educar/issues/401/comments"},"review_comments":{"href":"https://api.github.com/repos/portabilis/i-educar/pulls/401/comments"},"review_comment":{"href":"https://api.github.com/repos/portabilis/i-educar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/portabilis/i-educar/pulls/401/commits"},"statuses":{"href":"https://api.github.com/repos/portabilis/i-educar/statuses/a16fc87636c411a9898aadea5f18c1f03cc1aa7f"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"edersoares","id":957395,"node_id":"MDQ6VXNlcjk1NzM5NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/957395?v=4","gravatar_id":"","url":"https://api.github.com/users/edersoares","html_url":"https://github.com/edersoares","followers_url":"https://api.github.com/users/edersoares/followers","following_url":"https://api.github.com/users/edersoares/following{/other_user}","gists_url":"https://api.github.com/users/edersoares/gists{/gist_id}","starred_url":"https://api.github.com/users/edersoares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edersoares/subscriptions","organizations_url":"https://api.github.com/users/edersoares/orgs","repos_url":"https://api.github.com/users/edersoares/repos","events_url":"https://api.github.com/users/edersoares/events{/privacy}","received_events_url":"https://api.github.com/users/edersoares/received_events","type":"User","site_admin":false},"comments":6,"review_comments":0,"maintainer_can_modify":false,"commits":13,"additions":4253,"deletions":1722,"changed_files":24}}
{"actor":{"display_login":"edersoares"}}