{"action":"created","comment":{"url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/comments/178477391","pull_request_review_id":108537989,"id":178477391,"diff_hunk":"@@ -0,0 +1,84 @@\n+\n+/**\n+ * This file of tests only gets executed by Travis CI\n+ */\n+\n+\n+describe('Impersonate user JWT, navigate to profile, edit last_name to & back.', function () {\n+\n+\n+    context('Wrangler User Profile', function () {\n+\n+        beforeEach(function(){\n+            cy.visit('/');\n+        });\n+\n+        /** Cypress clears browser state between tests so need to use beforeEach rather than before. This may change according to Cypress - https://github.com/cypress-io/cypress/issues/747 */\n+        /*\n+        beforeEach(function(){\n+            cy.login4DN({ 'email' : 'wrangler@wrangler.com' });\n+        });\n+        */\n+\n+        it('Ensure logged in, visit profile page, add & remove access key', function(){\n+\n+            cy.login4DN({ 'email' : 'wrangler@wrangler.com', 'useEnvToken' : false }).end().get('ul.navbar-acct li.user-account-item').should('have.class', 'is-logged-in').then((accountListItem)=>{\n+                expect(accountListItem.children('#user_actions_dropdown').text()).to.contain('Wrangler');\n+            }).end()\n+            .get(\"#user_actions_dropdown\").click().wait(100).end()\n+            .get('ul.dropdown-menu[aria-labelledby=\"user_actions_dropdown\"] a#profile').click().end()\n+            .get('.page-container .user-title-row-container h1.user-title').should('contain', \"Wrangler\").end() // Test only for first name as we're editing last name & it may change re: delayed indexing, etc.\n+            .get('.page-container .access-keys-container h3').should('contain', \"Access Keys\").end()\n+            .get('.page-container .access-keys-container #add-access-key').click().wait(100).end()\n+            .get('.modal-body').should('contain', 'Access Key ID').should('contain', 'Secret Access Key').end()\n+            .get('.modal-body .key-value div:first-child dd').invoke('text').then((accessKeyID)=>{\n+                return cy.get('.fade.in.modal').click().wait(500).end()","path":"cypress/integration/03_users_and_editing.js","position":35,"original_position":35,"commit_id":"7de7b77686f53a6538259459a345178a1f3c6246","original_commit_id":"7de7b77686f53a6538259459a345178a1f3c6246","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Expected indentation of 20 spaces but found 16. (indent)](https://app.codacy.com/app/4dn/fourfront/pullRequest?prid=1445809)","created_at":"2018-04-02T02:13:25Z","updated_at":"2018-04-02T02:13:25Z","html_url":"https://github.com/4dn-dcic/fourfront/pull/740#discussion_r178477391","pull_request_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/740","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/comments/178477391"},"html":{"href":"https://github.com/4dn-dcic/fourfront/pull/740#discussion_r178477391"},"pull_request":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/740"}}},"pull_request":{"url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/740","id":175801796,"html_url":"https://github.com/4dn-dcic/fourfront/pull/740","diff_url":"https://github.com/4dn-dcic/fourfront/pull/740.diff","patch_url":"https://github.com/4dn-dcic/fourfront/pull/740.patch","issue_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/740","number":740,"state":"open","locked":false,"title":"Preliminary Cypress Tests","user":{"login":"alexkb0009","id":10673737,"avatar_url":"https://avatars2.githubusercontent.com/u/10673737?v=4","gravatar_id":"","url":"https://api.github.com/users/alexkb0009","html_url":"https://github.com/alexkb0009","followers_url":"https://api.github.com/users/alexkb0009/followers","following_url":"https://api.github.com/users/alexkb0009/following{/other_user}","gists_url":"https://api.github.com/users/alexkb0009/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkb0009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkb0009/subscriptions","organizations_url":"https://api.github.com/users/alexkb0009/orgs","repos_url":"https://api.github.com/users/alexkb0009/repos","events_url":"https://api.github.com/users/alexkb0009/events{/privacy}","received_events_url":"https://api.github.com/users/alexkb0009/received_events","type":"User","site_admin":false},"body":"## Cypress Tests \r\n- https://dashboard.cypress.io/#/projects/bj6vhb/runs\r\n- Can run locally w/ `npm run cypress:open` (suggested - for deployment tests).\r\n- First may need to perform `npm install` to update JS dependencies; see package.json for other run options incl. `npm run cypress:open-post-deploy` to view/run the post-deployment set of tests and `cypress:test-local` to run tests w/o a GUI.\r\n\r\n---\r\n\r\nThe following _selenium_ tests should also work __locally__, but now deprecated:\r\n\r\n### Command-line examples:\r\n#### Remote (e.g. staging, hotseat) from Local (chromedriver install req'd)\r\n```cmd\r\nbin/test -v -v -m \"postdeploy\" \\\r\n      --splinter-implicit-wait 10 \\\r\n      --splinter-webdriver chrome \\\r\n      --splinter-socket-timeout 300 \\\r\n      --splinter-webdriver-executable /Users/alex/executables/chromedriver \\   <-- EDIT\r\n      --host-url fourfront-hotseat.9wzadzju3p.us-east-1.elasticbeanstalk.com \\\r\n      ./src/encoded/tests/post_deploy\r\n```\r\n#### Local from Local (e.g. localhost:8000) -- sub-set of tests (chromedriver install req'd)\r\n```cmd\r\nbin/test -v -v -m \"postdeploy_local\" \\\r\n      --splinter-implicit-wait 10 \\\r\n      --splinter-webdriver chrome \\\r\n      --splinter-socket-timeout 300 \\\r\n      --splinter-webdriver-executable /Users/alex/executables/chromedriver \\   <-- EDIT\r\n      --host-url localhost:8000 \\\r\n      ./src/encoded/tests/post_deploy\r\n```\r\n\r\nShould look like (failure of `test_search_for_olfactory_paged_result_consistency` expected until es_search_sort is on data.4dn) -- https://gyazo.com/906ebade3f2db7ad3a6fc2d0113563dd","created_at":"2018-03-19T04:20:00Z","updated_at":"2018-04-02T02:13:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16b005fca81bdd6d102bd0216df8b7205bb5840d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/740/commits","review_comments_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/740/comments","review_comment_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/comments{/number}","comments_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/740/comments","statuses_url":"https://api.github.com/repos/4dn-dcic/fourfront/statuses/7de7b77686f53a6538259459a345178a1f3c6246","head":{"label":"4dn-dcic:selenium","ref":"selenium","sha":"7de7b77686f53a6538259459a345178a1f3c6246","user":{"login":"4dn-dcic","id":23222469,"avatar_url":"https://avatars3.githubusercontent.com/u/23222469?v=4","gravatar_id":"","url":"https://api.github.com/users/4dn-dcic","html_url":"https://github.com/4dn-dcic","followers_url":"https://api.github.com/users/4dn-dcic/followers","following_url":"https://api.github.com/users/4dn-dcic/following{/other_user}","gists_url":"https://api.github.com/users/4dn-dcic/gists{/gist_id}","starred_url":"https://api.github.com/users/4dn-dcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4dn-dcic/subscriptions","organizations_url":"https://api.github.com/users/4dn-dcic/orgs","repos_url":"https://api.github.com/users/4dn-dcic/repos","events_url":"https://api.github.com/users/4dn-dcic/events{/privacy}","received_events_url":"https://api.github.com/users/4dn-dcic/received_events","type":"Organization","site_admin":false},"repo":{"id":58398322,"name":"fourfront","full_name":"4dn-dcic/fourfront","owner":{"login":"4dn-dcic","id":23222469,"avatar_url":"https://avatars3.githubusercontent.com/u/23222469?v=4","gravatar_id":"","url":"https://api.github.com/users/4dn-dcic","html_url":"https://github.com/4dn-dcic","followers_url":"https://api.github.com/users/4dn-dcic/followers","following_url":"https://api.github.com/users/4dn-dcic/following{/other_user}","gists_url":"https://api.github.com/users/4dn-dcic/gists{/gist_id}","starred_url":"https://api.github.com/users/4dn-dcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4dn-dcic/subscriptions","organizations_url":"https://api.github.com/users/4dn-dcic/orgs","repos_url":"https://api.github.com/users/4dn-dcic/repos","events_url":"https://api.github.com/users/4dn-dcic/events{/privacy}","received_events_url":"https://api.github.com/users/4dn-dcic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/4dn-dcic/fourfront","description":"website for submitting and viewing genomic data","fork":false,"url":"https://api.github.com/repos/4dn-dcic/fourfront","forks_url":"https://api.github.com/repos/4dn-dcic/fourfront/forks","keys_url":"https://api.github.com/repos/4dn-dcic/fourfront/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4dn-dcic/fourfront/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4dn-dcic/fourfront/teams","hooks_url":"https://api.github.com/repos/4dn-dcic/fourfront/hooks","issue_events_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/events{/number}","events_url":"https://api.github.com/repos/4dn-dcic/fourfront/events","assignees_url":"https://api.github.com/repos/4dn-dcic/fourfront/assignees{/user}","branches_url":"https://api.github.com/repos/4dn-dcic/fourfront/branches{/branch}","tags_url":"https://api.github.com/repos/4dn-dcic/fourfront/tags","blobs_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/refs{/sha}","trees_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4dn-dcic/fourfront/statuses/{sha}","languages_url":"https://api.github.com/repos/4dn-dcic/fourfront/languages","stargazers_url":"https://api.github.com/repos/4dn-dcic/fourfront/stargazers","contributors_url":"https://api.github.com/repos/4dn-dcic/fourfront/contributors","subscribers_url":"https://api.github.com/repos/4dn-dcic/fourfront/subscribers","subscription_url":"https://api.github.com/repos/4dn-dcic/fourfront/subscription","commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/commits{/sha}","git_commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/commits{/sha}","comments_url":"https://api.github.com/repos/4dn-dcic/fourfront/comments{/number}","issue_comment_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/comments{/number}","contents_url":"https://api.github.com/repos/4dn-dcic/fourfront/contents/{+path}","compare_url":"https://api.github.com/repos/4dn-dcic/fourfront/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4dn-dcic/fourfront/merges","archive_url":"https://api.github.com/repos/4dn-dcic/fourfront/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4dn-dcic/fourfront/downloads","issues_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues{/number}","pulls_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls{/number}","milestones_url":"https://api.github.com/repos/4dn-dcic/fourfront/milestones{/number}","notifications_url":"https://api.github.com/repos/4dn-dcic/fourfront/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4dn-dcic/fourfront/labels{/name}","releases_url":"https://api.github.com/repos/4dn-dcic/fourfront/releases{/id}","deployments_url":"https://api.github.com/repos/4dn-dcic/fourfront/deployments","created_at":"2016-05-09T18:19:56Z","updated_at":"2018-03-31T21:09:16Z","pushed_at":"2018-04-02T02:07:31Z","git_url":"git://github.com/4dn-dcic/fourfront.git","ssh_url":"git@github.com:4dn-dcic/fourfront.git","clone_url":"https://github.com/4dn-dcic/fourfront.git","svn_url":"https://github.com/4dn-dcic/fourfront","homepage":null,"size":192944,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":5,"watchers":5,"default_branch":"master"}},"base":{"label":"4dn-dcic:master","ref":"master","sha":"89c7e5000be340d5099d0a2d92f6f682ef1fa95c","user":{"login":"4dn-dcic","id":23222469,"avatar_url":"https://avatars3.githubusercontent.com/u/23222469?v=4","gravatar_id":"","url":"https://api.github.com/users/4dn-dcic","html_url":"https://github.com/4dn-dcic","followers_url":"https://api.github.com/users/4dn-dcic/followers","following_url":"https://api.github.com/users/4dn-dcic/following{/other_user}","gists_url":"https://api.github.com/users/4dn-dcic/gists{/gist_id}","starred_url":"https://api.github.com/users/4dn-dcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4dn-dcic/subscriptions","organizations_url":"https://api.github.com/users/4dn-dcic/orgs","repos_url":"https://api.github.com/users/4dn-dcic/repos","events_url":"https://api.github.com/users/4dn-dcic/events{/privacy}","received_events_url":"https://api.github.com/users/4dn-dcic/received_events","type":"Organization","site_admin":false},"repo":{"id":58398322,"name":"fourfront","full_name":"4dn-dcic/fourfront","owner":{"login":"4dn-dcic","id":23222469,"avatar_url":"https://avatars3.githubusercontent.com/u/23222469?v=4","gravatar_id":"","url":"https://api.github.com/users/4dn-dcic","html_url":"https://github.com/4dn-dcic","followers_url":"https://api.github.com/users/4dn-dcic/followers","following_url":"https://api.github.com/users/4dn-dcic/following{/other_user}","gists_url":"https://api.github.com/users/4dn-dcic/gists{/gist_id}","starred_url":"https://api.github.com/users/4dn-dcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4dn-dcic/subscriptions","organizations_url":"https://api.github.com/users/4dn-dcic/orgs","repos_url":"https://api.github.com/users/4dn-dcic/repos","events_url":"https://api.github.com/users/4dn-dcic/events{/privacy}","received_events_url":"https://api.github.com/users/4dn-dcic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/4dn-dcic/fourfront","description":"website for submitting and viewing genomic data","fork":false,"url":"https://api.github.com/repos/4dn-dcic/fourfront","forks_url":"https://api.github.com/repos/4dn-dcic/fourfront/forks","keys_url":"https://api.github.com/repos/4dn-dcic/fourfront/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4dn-dcic/fourfront/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4dn-dcic/fourfront/teams","hooks_url":"https://api.github.com/repos/4dn-dcic/fourfront/hooks","issue_events_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/events{/number}","events_url":"https://api.github.com/repos/4dn-dcic/fourfront/events","assignees_url":"https://api.github.com/repos/4dn-dcic/fourfront/assignees{/user}","branches_url":"https://api.github.com/repos/4dn-dcic/fourfront/branches{/branch}","tags_url":"https://api.github.com/repos/4dn-dcic/fourfront/tags","blobs_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/refs{/sha}","trees_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4dn-dcic/fourfront/statuses/{sha}","languages_url":"https://api.github.com/repos/4dn-dcic/fourfront/languages","stargazers_url":"https://api.github.com/repos/4dn-dcic/fourfront/stargazers","contributors_url":"https://api.github.com/repos/4dn-dcic/fourfront/contributors","subscribers_url":"https://api.github.com/repos/4dn-dcic/fourfront/subscribers","subscription_url":"https://api.github.com/repos/4dn-dcic/fourfront/subscription","commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/commits{/sha}","git_commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/commits{/sha}","comments_url":"https://api.github.com/repos/4dn-dcic/fourfront/comments{/number}","issue_comment_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/comments{/number}","contents_url":"https://api.github.com/repos/4dn-dcic/fourfront/contents/{+path}","compare_url":"https://api.github.com/repos/4dn-dcic/fourfront/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4dn-dcic/fourfront/merges","archive_url":"https://api.github.com/repos/4dn-dcic/fourfront/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4dn-dcic/fourfront/downloads","issues_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues{/number}","pulls_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls{/number}","milestones_url":"https://api.github.com/repos/4dn-dcic/fourfront/milestones{/number}","notifications_url":"https://api.github.com/repos/4dn-dcic/fourfront/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4dn-dcic/fourfront/labels{/name}","releases_url":"https://api.github.com/repos/4dn-dcic/fourfront/releases{/id}","deployments_url":"https://api.github.com/repos/4dn-dcic/fourfront/deployments","created_at":"2016-05-09T18:19:56Z","updated_at":"2018-03-31T21:09:16Z","pushed_at":"2018-04-02T02:07:31Z","git_url":"git://github.com/4dn-dcic/fourfront.git","ssh_url":"git@github.com:4dn-dcic/fourfront.git","clone_url":"https://github.com/4dn-dcic/fourfront.git","svn_url":"https://github.com/4dn-dcic/fourfront","homepage":null,"size":192944,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":5,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/740"},"html":{"href":"https://github.com/4dn-dcic/fourfront/pull/740"},"issue":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/issues/740"},"comments":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/issues/740/comments"},"review_comments":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/740/comments"},"review_comment":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/740/commits"},"statuses":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/statuses/7de7b77686f53a6538259459a345178a1f3c6246"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codacy-bot"}}