{"action":"created","comment":{"url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls/comments/241963236","pull_request_review_id":185369810,"id":241963236,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTk2MzIzNg==","diff_hunk":"@@ -0,0 +1,49 @@\n+describe('App End-to-end Test', () => {\n+  it('test app', () => {\n+    cy.visit('/');\n+\n+    cy.get('h4')\n+      .should('have.text', 'FIND YOUR MOVIE');\n+\n+    cy.get('.input-field')\n+      .type('fifty')\n+      .should('have.value', 'fifty');\n+    cy.get('.input-field').type('{enter}');\n+\n+    cy.wait(5000);\n+\n+    cy.get('#moviesFound').should('contain', '3 movies found');\n+    cy.screenshot('fifty-search-results');\n+    cy.wait(1000);\n+\n+    cy.get('#genre').click();\n+    cy.get('.input-field')\n+      .clear()\n+      .type('Adventure')\n+      .should('have.value', 'Adventure');\n+    cy.get('#search').click();\n+\n+    cy.wait(4000);\n+\n+    cy.get('#moviesFound').should('contain', '10 movies found');\n+    cy.screenshot('adventure-genre-results');\n+    cy.wait(1000);\n+\n+    cy.get('#title').click();\n+    cy.get('.input-field')\n+      .clear()\n+      .type('asdrf!@')\n+      .should('have.value', 'asdrf!@');\n+    cy.get('.input-field').type('{enter}');\n+    cy.get('#search').click();\n+\n+    cy.wait(4000);\n+\n+    cy.get('.not-found-message')\n+      .should('have.text', 'No Films found');\n+    cy.screenshot('no-found-results');\n+    cy.wait(1000);\n+\n+    cy.url().should('eq', 'http://localhost/');","path":"cypress/integration/App.e2e.js","position":47,"original_position":47,"commit_id":"650823a9e61924ec18eca099124a38b6fe406863","original_commit_id":"650823a9e61924ec18eca099124a38b6fe406863","user":{"login":"thetreew","id":5860266,"node_id":"MDQ6VXNlcjU4NjAyNjY=","avatar_url":"https://avatars3.githubusercontent.com/u/5860266?v=4","gravatar_id":"","url":"https://api.github.com/users/thetreew","html_url":"https://github.com/thetreew","followers_url":"https://api.github.com/users/thetreew/followers","following_url":"https://api.github.com/users/thetreew/following{/other_user}","gists_url":"https://api.github.com/users/thetreew/gists{/gist_id}","starred_url":"https://api.github.com/users/thetreew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thetreew/subscriptions","organizations_url":"https://api.github.com/users/thetreew/orgs","repos_url":"https://api.github.com/users/thetreew/repos","events_url":"https://api.github.com/users/thetreew/events{/privacy}","received_events_url":"https://api.github.com/users/thetreew/received_events","type":"User","site_admin":false},"body":"As a bonus: consider using Page Object pattern - https://docs.cypress.io/faq/questions/using-cypress-faq.html#Can-I-use-the-Page-Object-pattern","created_at":"2018-12-15T23:08:43Z","updated_at":"2018-12-15T23:33:38Z","html_url":"https://github.com/nkorczyk/ReactJSTraining/pull/4#discussion_r241963236","pull_request_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls/4","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls/comments/241963236"},"html":{"href":"https://github.com/nkorczyk/ReactJSTraining/pull/4#discussion_r241963236"},"pull_request":{"href":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls/4","id":238169294,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4MTY5Mjk0","html_url":"https://github.com/nkorczyk/ReactJSTraining/pull/4","diff_url":"https://github.com/nkorczyk/ReactJSTraining/pull/4.diff","patch_url":"https://github.com/nkorczyk/ReactJSTraining/pull/4.patch","issue_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/issues/4","number":4,"state":"open","locked":false,"title":"Module4: Testing","user":{"login":"nkorczyk","id":35428287,"node_id":"MDQ6VXNlcjM1NDI4Mjg3","avatar_url":"https://avatars3.githubusercontent.com/u/35428287?v=4","gravatar_id":"","url":"https://api.github.com/users/nkorczyk","html_url":"https://github.com/nkorczyk","followers_url":"https://api.github.com/users/nkorczyk/followers","following_url":"https://api.github.com/users/nkorczyk/following{/other_user}","gists_url":"https://api.github.com/users/nkorczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/nkorczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkorczyk/subscriptions","organizations_url":"https://api.github.com/users/nkorczyk/orgs","repos_url":"https://api.github.com/users/nkorczyk/repos","events_url":"https://api.github.com/users/nkorczyk/events{/privacy}","received_events_url":"https://api.github.com/users/nkorczyk/received_events","type":"User","site_admin":false},"body":"Changes proposed in this PR:\r\n\r\n- Created tests using `enzyme` and `jest`.\r\n- Used snapshot testing.\r\n- Used coverage tool.\r\n- Created e2e test using `Cypress` library.\r\n- Coverage: 87.5%\r\n\r\nPlease check and review.","created_at":"2018-12-12T20:18:33Z","updated_at":"2018-12-15T23:33:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46df3e19e5975d96bb11a9c374ea3b4cd8fba4e7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls/4/commits","review_comments_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls/4/comments","review_comment_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/issues/4/comments","statuses_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/statuses/650823a9e61924ec18eca099124a38b6fe406863","head":{"label":"nkorczyk:Module4","ref":"Module4","sha":"650823a9e61924ec18eca099124a38b6fe406863","user":{"login":"nkorczyk","id":35428287,"node_id":"MDQ6VXNlcjM1NDI4Mjg3","avatar_url":"https://avatars3.githubusercontent.com/u/35428287?v=4","gravatar_id":"","url":"https://api.github.com/users/nkorczyk","html_url":"https://github.com/nkorczyk","followers_url":"https://api.github.com/users/nkorczyk/followers","following_url":"https://api.github.com/users/nkorczyk/following{/other_user}","gists_url":"https://api.github.com/users/nkorczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/nkorczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkorczyk/subscriptions","organizations_url":"https://api.github.com/users/nkorczyk/orgs","repos_url":"https://api.github.com/users/nkorczyk/repos","events_url":"https://api.github.com/users/nkorczyk/events{/privacy}","received_events_url":"https://api.github.com/users/nkorczyk/received_events","type":"User","site_admin":false},"repo":{"id":158659547,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg2NTk1NDc=","name":"ReactJSTraining","full_name":"nkorczyk/ReactJSTraining","private":false,"owner":{"login":"nkorczyk","id":35428287,"node_id":"MDQ6VXNlcjM1NDI4Mjg3","avatar_url":"https://avatars3.githubusercontent.com/u/35428287?v=4","gravatar_id":"","url":"https://api.github.com/users/nkorczyk","html_url":"https://github.com/nkorczyk","followers_url":"https://api.github.com/users/nkorczyk/followers","following_url":"https://api.github.com/users/nkorczyk/following{/other_user}","gists_url":"https://api.github.com/users/nkorczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/nkorczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkorczyk/subscriptions","organizations_url":"https://api.github.com/users/nkorczyk/orgs","repos_url":"https://api.github.com/users/nkorczyk/repos","events_url":"https://api.github.com/users/nkorczyk/events{/privacy}","received_events_url":"https://api.github.com/users/nkorczyk/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nkorczyk/ReactJSTraining","description":"ReactJS Mentoring Program","fork":false,"url":"https://api.github.com/repos/nkorczyk/ReactJSTraining","forks_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/forks","keys_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/teams","hooks_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/hooks","issue_events_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/issues/events{/number}","events_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/events","assignees_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/assignees{/user}","branches_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/branches{/branch}","tags_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/tags","blobs_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/git/refs{/sha}","trees_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/statuses/{sha}","languages_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/languages","stargazers_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/stargazers","contributors_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/contributors","subscribers_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/subscribers","subscription_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/subscription","commits_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/commits{/sha}","git_commits_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/git/commits{/sha}","comments_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/comments{/number}","issue_comment_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/issues/comments{/number}","contents_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/contents/{+path}","compare_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/merges","archive_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/downloads","issues_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/issues{/number}","pulls_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls{/number}","milestones_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/milestones{/number}","notifications_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/labels{/name}","releases_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/releases{/id}","deployments_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/deployments","created_at":"2018-11-22T07:32:34Z","updated_at":"2018-12-09T21:55:12Z","pushed_at":"2018-12-14T13:45:12Z","git_url":"git://github.com/nkorczyk/ReactJSTraining.git","ssh_url":"git@github.com:nkorczyk/ReactJSTraining.git","clone_url":"https://github.com/nkorczyk/ReactJSTraining.git","svn_url":"https://github.com/nkorczyk/ReactJSTraining","homepage":null,"size":4929,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"nkorczyk:master","ref":"master","sha":"2c2ad0ba61b59c564581afe98bcf67929ce9972c","user":{"login":"nkorczyk","id":35428287,"node_id":"MDQ6VXNlcjM1NDI4Mjg3","avatar_url":"https://avatars3.githubusercontent.com/u/35428287?v=4","gravatar_id":"","url":"https://api.github.com/users/nkorczyk","html_url":"https://github.com/nkorczyk","followers_url":"https://api.github.com/users/nkorczyk/followers","following_url":"https://api.github.com/users/nkorczyk/following{/other_user}","gists_url":"https://api.github.com/users/nkorczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/nkorczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkorczyk/subscriptions","organizations_url":"https://api.github.com/users/nkorczyk/orgs","repos_url":"https://api.github.com/users/nkorczyk/repos","events_url":"https://api.github.com/users/nkorczyk/events{/privacy}","received_events_url":"https://api.github.com/users/nkorczyk/received_events","type":"User","site_admin":false},"repo":{"id":158659547,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg2NTk1NDc=","name":"ReactJSTraining","full_name":"nkorczyk/ReactJSTraining","private":false,"owner":{"login":"nkorczyk","id":35428287,"node_id":"MDQ6VXNlcjM1NDI4Mjg3","avatar_url":"https://avatars3.githubusercontent.com/u/35428287?v=4","gravatar_id":"","url":"https://api.github.com/users/nkorczyk","html_url":"https://github.com/nkorczyk","followers_url":"https://api.github.com/users/nkorczyk/followers","following_url":"https://api.github.com/users/nkorczyk/following{/other_user}","gists_url":"https://api.github.com/users/nkorczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/nkorczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkorczyk/subscriptions","organizations_url":"https://api.github.com/users/nkorczyk/orgs","repos_url":"https://api.github.com/users/nkorczyk/repos","events_url":"https://api.github.com/users/nkorczyk/events{/privacy}","received_events_url":"https://api.github.com/users/nkorczyk/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nkorczyk/ReactJSTraining","description":"ReactJS Mentoring Program","fork":false,"url":"https://api.github.com/repos/nkorczyk/ReactJSTraining","forks_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/forks","keys_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/teams","hooks_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/hooks","issue_events_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/issues/events{/number}","events_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/events","assignees_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/assignees{/user}","branches_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/branches{/branch}","tags_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/tags","blobs_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/git/refs{/sha}","trees_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/statuses/{sha}","languages_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/languages","stargazers_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/stargazers","contributors_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/contributors","subscribers_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/subscribers","subscription_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/subscription","commits_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/commits{/sha}","git_commits_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/git/commits{/sha}","comments_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/comments{/number}","issue_comment_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/issues/comments{/number}","contents_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/contents/{+path}","compare_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/merges","archive_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/downloads","issues_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/issues{/number}","pulls_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls{/number}","milestones_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/milestones{/number}","notifications_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/labels{/name}","releases_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/releases{/id}","deployments_url":"https://api.github.com/repos/nkorczyk/ReactJSTraining/deployments","created_at":"2018-11-22T07:32:34Z","updated_at":"2018-12-09T21:55:12Z","pushed_at":"2018-12-14T13:45:12Z","git_url":"git://github.com/nkorczyk/ReactJSTraining.git","ssh_url":"git@github.com:nkorczyk/ReactJSTraining.git","clone_url":"https://github.com/nkorczyk/ReactJSTraining.git","svn_url":"https://github.com/nkorczyk/ReactJSTraining","homepage":null,"size":4929,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls/4"},"html":{"href":"https://github.com/nkorczyk/ReactJSTraining/pull/4"},"issue":{"href":"https://api.github.com/repos/nkorczyk/ReactJSTraining/issues/4"},"comments":{"href":"https://api.github.com/repos/nkorczyk/ReactJSTraining/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nkorczyk/ReactJSTraining/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/nkorczyk/ReactJSTraining/statuses/650823a9e61924ec18eca099124a38b6fe406863"}},"author_association":"OWNER"}}
{"actor":{"display_login":"thetreew"}}