{"action":"created","comment":{"url":"https://api.github.com/repos/FinalAngel/django-cms/pulls/comments/49979343","id":49979343,"diff_hunk":"@@ -0,0 +1,133 @@\n+'use strict';\n+\n+// #############################################################################\n+// Change Settings behaviour\n+\n+var globals = require('./settings/globals');\n+var casperjs = require('casper');\n+var cms = require('./helpers/cms')(casperjs);\n+\n+casper.test.setUp(function (done) {\n+    casper.start()\n+        .then(cms.login())\n+        .then(cms.addPage({ title: 'home' }))\n+        .then(cms.addPlugin({\n+            type: 'TextPlugin',\n+            content: {\n+                id_body: 'Dummy to create history'\n+            }\n+        }))\n+        .then(cms.addPlugin({\n+            type: 'TextPlugin',\n+            content: {\n+                id_body: 'Test-text'\n+            }\n+        }))\n+        .run(done);\n+});\n+\n+casper.test.tearDown(function (done) {\n+    casper.start()\n+        .then(cms.removePage())\n+        .then(cms.logout())\n+        .run(done);\n+});\n+\n+casper.test.begin('History', function (test) {\n+    casper\n+        .start(globals.editUrl)\n+\n+        .then(function () {\n+            test.assertElementCount(\n+                '.cms-dragarea:nth-child(1) > .cms-draggables > .cms-draggable',\n+                2,\n+                'Both plugins are in first placeholder'\n+            );\n+        })\n+        // click on History\n+        .waitUntilVisible('.cms-toolbar-expanded', function () {\n+            this.click('.cms-toolbar-item-navigation > li:nth-child(3) > a');\n+        })\n+        // click on Undo\n+        .waitForSelector('.cms-toolbar-item-navigation-hover', function () {\n+            this.click('.cms-toolbar-item-navigation-hover li:first-child a');","path":"cms/tests/frontend/integration/history.js","position":53,"original_position":53,"commit_id":"599882a885b8e90d60b288937d8e8685322ca7fc","original_commit_id":"599882a885b8e90d60b288937d8e8685322ca7fc","user":{"login":"vxsx","id":366813,"avatar_url":"https://avatars.githubusercontent.com/u/366813?v=3","gravatar_id":"","url":"https://api.github.com/users/vxsx","html_url":"https://github.com/vxsx","followers_url":"https://api.github.com/users/vxsx/followers","following_url":"https://api.github.com/users/vxsx/following{/other_user}","gists_url":"https://api.github.com/users/vxsx/gists{/gist_id}","starred_url":"https://api.github.com/users/vxsx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vxsx/subscriptions","organizations_url":"https://api.github.com/users/vxsx/orgs","repos_url":"https://api.github.com/users/vxsx/repos","events_url":"https://api.github.com/users/vxsx/events{/privacy}","received_events_url":"https://api.github.com/users/vxsx/received_events","type":"User","site_admin":false},"body":"please use xPath here","created_at":"2016-01-18T10:04:48Z","updated_at":"2016-01-18T10:04:48Z","html_url":"https://github.com/FinalAngel/django-cms/pull/145#discussion_r49979343","pull_request_url":"https://api.github.com/repos/FinalAngel/django-cms/pulls/145","_links":{"self":{"href":"https://api.github.com/repos/FinalAngel/django-cms/pulls/comments/49979343"},"html":{"href":"https://github.com/FinalAngel/django-cms/pull/145#discussion_r49979343"},"pull_request":{"href":"https://api.github.com/repos/FinalAngel/django-cms/pulls/145"}}},"pull_request":{"url":"https://api.github.com/repos/FinalAngel/django-cms/pulls/145","id":56321666,"html_url":"https://github.com/FinalAngel/django-cms/pull/145","diff_url":"https://github.com/FinalAngel/django-cms/pull/145.diff","patch_url":"https://github.com/FinalAngel/django-cms/pull/145.patch","issue_url":"https://api.github.com/repos/FinalAngel/django-cms/issues/145","number":145,"state":"open","locked":false,"title":"Feature/integration tests/history","user":{"login":"genti94","id":13114899,"avatar_url":"https://avatars.githubusercontent.com/u/13114899?v=3","gravatar_id":"","url":"https://api.github.com/users/genti94","html_url":"https://github.com/genti94","followers_url":"https://api.github.com/users/genti94/followers","following_url":"https://api.github.com/users/genti94/following{/other_user}","gists_url":"https://api.github.com/users/genti94/gists{/gist_id}","starred_url":"https://api.github.com/users/genti94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genti94/subscriptions","organizations_url":"https://api.github.com/users/genti94/orgs","repos_url":"https://api.github.com/users/genti94/repos","events_url":"https://api.github.com/users/genti94/events{/privacy}","received_events_url":"https://api.github.com/users/genti94/received_events","type":"User","site_admin":false},"body":"add reversion to testserver\r\n\r\nfinished revertLive.js\r\n\r\nfinished history.js","created_at":"2016-01-18T10:01:55Z","updated_at":"2016-01-18T10:04:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"728e6010097ae503b2d81833177e6019a0657fce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FinalAngel/django-cms/pulls/145/commits","review_comments_url":"https://api.github.com/repos/FinalAngel/django-cms/pulls/145/comments","review_comment_url":"https://api.github.com/repos/FinalAngel/django-cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FinalAngel/django-cms/issues/145/comments","statuses_url":"https://api.github.com/repos/FinalAngel/django-cms/statuses/599882a885b8e90d60b288937d8e8685322ca7fc","head":{"label":"FinalAngel:feature/integration-tests/history","ref":"feature/integration-tests/history","sha":"599882a885b8e90d60b288937d8e8685322ca7fc","user":{"login":"FinalAngel","id":270307,"avatar_url":"https://avatars.githubusercontent.com/u/270307?v=3","gravatar_id":"","url":"https://api.github.com/users/FinalAngel","html_url":"https://github.com/FinalAngel","followers_url":"https://api.github.com/users/FinalAngel/followers","following_url":"https://api.github.com/users/FinalAngel/following{/other_user}","gists_url":"https://api.github.com/users/FinalAngel/gists{/gist_id}","starred_url":"https://api.github.com/users/FinalAngel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FinalAngel/subscriptions","organizations_url":"https://api.github.com/users/FinalAngel/orgs","repos_url":"https://api.github.com/users/FinalAngel/repos","events_url":"https://api.github.com/users/FinalAngel/events{/privacy}","received_events_url":"https://api.github.com/users/FinalAngel/received_events","type":"User","site_admin":false},"repo":{"id":748738,"name":"django-cms","full_name":"FinalAngel/django-cms","owner":{"login":"FinalAngel","id":270307,"avatar_url":"https://avatars.githubusercontent.com/u/270307?v=3","gravatar_id":"","url":"https://api.github.com/users/FinalAngel","html_url":"https://github.com/FinalAngel","followers_url":"https://api.github.com/users/FinalAngel/followers","following_url":"https://api.github.com/users/FinalAngel/following{/other_user}","gists_url":"https://api.github.com/users/FinalAngel/gists{/gist_id}","starred_url":"https://api.github.com/users/FinalAngel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FinalAngel/subscriptions","organizations_url":"https://api.github.com/users/FinalAngel/orgs","repos_url":"https://api.github.com/users/FinalAngel/repos","events_url":"https://api.github.com/users/FinalAngel/events{/privacy}","received_events_url":"https://api.github.com/users/FinalAngel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FinalAngel/django-cms","description":"An Advanced Django Cms","fork":true,"url":"https://api.github.com/repos/FinalAngel/django-cms","forks_url":"https://api.github.com/repos/FinalAngel/django-cms/forks","keys_url":"https://api.github.com/repos/FinalAngel/django-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FinalAngel/django-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FinalAngel/django-cms/teams","hooks_url":"https://api.github.com/repos/FinalAngel/django-cms/hooks","issue_events_url":"https://api.github.com/repos/FinalAngel/django-cms/issues/events{/number}","events_url":"https://api.github.com/repos/FinalAngel/django-cms/events","assignees_url":"https://api.github.com/repos/FinalAngel/django-cms/assignees{/user}","branches_url":"https://api.github.com/repos/FinalAngel/django-cms/branches{/branch}","tags_url":"https://api.github.com/repos/FinalAngel/django-cms/tags","blobs_url":"https://api.github.com/repos/FinalAngel/django-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FinalAngel/django-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FinalAngel/django-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/FinalAngel/django-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FinalAngel/django-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/FinalAngel/django-cms/languages","stargazers_url":"https://api.github.com/repos/FinalAngel/django-cms/stargazers","contributors_url":"https://api.github.com/repos/FinalAngel/django-cms/contributors","subscribers_url":"https://api.github.com/repos/FinalAngel/django-cms/subscribers","subscription_url":"https://api.github.com/repos/FinalAngel/django-cms/subscription","commits_url":"https://api.github.com/repos/FinalAngel/django-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/FinalAngel/django-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/FinalAngel/django-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/FinalAngel/django-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/FinalAngel/django-cms/contents/{+path}","compare_url":"https://api.github.com/repos/FinalAngel/django-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FinalAngel/django-cms/merges","archive_url":"https://api.github.com/repos/FinalAngel/django-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FinalAngel/django-cms/downloads","issues_url":"https://api.github.com/repos/FinalAngel/django-cms/issues{/number}","pulls_url":"https://api.github.com/repos/FinalAngel/django-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/FinalAngel/django-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/FinalAngel/django-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FinalAngel/django-cms/labels{/name}","releases_url":"https://api.github.com/repos/FinalAngel/django-cms/releases{/id}","created_at":"2010-06-30T09:37:05Z","updated_at":"2015-12-01T17:08:13Z","pushed_at":"2016-01-18T10:01:55Z","git_url":"git://github.com/FinalAngel/django-cms.git","ssh_url":"git@github.com:FinalAngel/django-cms.git","clone_url":"https://github.com/FinalAngel/django-cms.git","svn_url":"https://github.com/FinalAngel/django-cms","homepage":"http://www.django-cms.org","size":58415,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"develop-3.4"}},"base":{"label":"FinalAngel:develop-3.4","ref":"develop-3.4","sha":"af45d98df047eae83163e867f92b122701443cf0","user":{"login":"FinalAngel","id":270307,"avatar_url":"https://avatars.githubusercontent.com/u/270307?v=3","gravatar_id":"","url":"https://api.github.com/users/FinalAngel","html_url":"https://github.com/FinalAngel","followers_url":"https://api.github.com/users/FinalAngel/followers","following_url":"https://api.github.com/users/FinalAngel/following{/other_user}","gists_url":"https://api.github.com/users/FinalAngel/gists{/gist_id}","starred_url":"https://api.github.com/users/FinalAngel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FinalAngel/subscriptions","organizations_url":"https://api.github.com/users/FinalAngel/orgs","repos_url":"https://api.github.com/users/FinalAngel/repos","events_url":"https://api.github.com/users/FinalAngel/events{/privacy}","received_events_url":"https://api.github.com/users/FinalAngel/received_events","type":"User","site_admin":false},"repo":{"id":748738,"name":"django-cms","full_name":"FinalAngel/django-cms","owner":{"login":"FinalAngel","id":270307,"avatar_url":"https://avatars.githubusercontent.com/u/270307?v=3","gravatar_id":"","url":"https://api.github.com/users/FinalAngel","html_url":"https://github.com/FinalAngel","followers_url":"https://api.github.com/users/FinalAngel/followers","following_url":"https://api.github.com/users/FinalAngel/following{/other_user}","gists_url":"https://api.github.com/users/FinalAngel/gists{/gist_id}","starred_url":"https://api.github.com/users/FinalAngel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FinalAngel/subscriptions","organizations_url":"https://api.github.com/users/FinalAngel/orgs","repos_url":"https://api.github.com/users/FinalAngel/repos","events_url":"https://api.github.com/users/FinalAngel/events{/privacy}","received_events_url":"https://api.github.com/users/FinalAngel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FinalAngel/django-cms","description":"An Advanced Django Cms","fork":true,"url":"https://api.github.com/repos/FinalAngel/django-cms","forks_url":"https://api.github.com/repos/FinalAngel/django-cms/forks","keys_url":"https://api.github.com/repos/FinalAngel/django-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FinalAngel/django-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FinalAngel/django-cms/teams","hooks_url":"https://api.github.com/repos/FinalAngel/django-cms/hooks","issue_events_url":"https://api.github.com/repos/FinalAngel/django-cms/issues/events{/number}","events_url":"https://api.github.com/repos/FinalAngel/django-cms/events","assignees_url":"https://api.github.com/repos/FinalAngel/django-cms/assignees{/user}","branches_url":"https://api.github.com/repos/FinalAngel/django-cms/branches{/branch}","tags_url":"https://api.github.com/repos/FinalAngel/django-cms/tags","blobs_url":"https://api.github.com/repos/FinalAngel/django-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FinalAngel/django-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FinalAngel/django-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/FinalAngel/django-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FinalAngel/django-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/FinalAngel/django-cms/languages","stargazers_url":"https://api.github.com/repos/FinalAngel/django-cms/stargazers","contributors_url":"https://api.github.com/repos/FinalAngel/django-cms/contributors","subscribers_url":"https://api.github.com/repos/FinalAngel/django-cms/subscribers","subscription_url":"https://api.github.com/repos/FinalAngel/django-cms/subscription","commits_url":"https://api.github.com/repos/FinalAngel/django-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/FinalAngel/django-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/FinalAngel/django-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/FinalAngel/django-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/FinalAngel/django-cms/contents/{+path}","compare_url":"https://api.github.com/repos/FinalAngel/django-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FinalAngel/django-cms/merges","archive_url":"https://api.github.com/repos/FinalAngel/django-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FinalAngel/django-cms/downloads","issues_url":"https://api.github.com/repos/FinalAngel/django-cms/issues{/number}","pulls_url":"https://api.github.com/repos/FinalAngel/django-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/FinalAngel/django-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/FinalAngel/django-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FinalAngel/django-cms/labels{/name}","releases_url":"https://api.github.com/repos/FinalAngel/django-cms/releases{/id}","created_at":"2010-06-30T09:37:05Z","updated_at":"2015-12-01T17:08:13Z","pushed_at":"2016-01-18T10:01:55Z","git_url":"git://github.com/FinalAngel/django-cms.git","ssh_url":"git@github.com:FinalAngel/django-cms.git","clone_url":"https://github.com/FinalAngel/django-cms.git","svn_url":"https://github.com/FinalAngel/django-cms","homepage":"http://www.django-cms.org","size":58415,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"develop-3.4"}},"_links":{"self":{"href":"https://api.github.com/repos/FinalAngel/django-cms/pulls/145"},"html":{"href":"https://github.com/FinalAngel/django-cms/pull/145"},"issue":{"href":"https://api.github.com/repos/FinalAngel/django-cms/issues/145"},"comments":{"href":"https://api.github.com/repos/FinalAngel/django-cms/issues/145/comments"},"review_comments":{"href":"https://api.github.com/repos/FinalAngel/django-cms/pulls/145/comments"},"review_comment":{"href":"https://api.github.com/repos/FinalAngel/django-cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FinalAngel/django-cms/pulls/145/commits"},"statuses":{"href":"https://api.github.com/repos/FinalAngel/django-cms/statuses/599882a885b8e90d60b288937d8e8685322ca7fc"}}}}