{"action":"opened","issue":{"url":"https://api.github.com/repos/craftercms/craftercms/issues/2064","repository_url":"https://api.github.com/repos/craftercms/craftercms","labels_url":"https://api.github.com/repos/craftercms/craftercms/issues/2064/labels{/name}","comments_url":"https://api.github.com/repos/craftercms/craftercms/issues/2064/comments","events_url":"https://api.github.com/repos/craftercms/craftercms/issues/2064/events","html_url":"https://github.com/craftercms/craftercms/issues/2064","id":318423308,"number":2064,"title":"[test-suite] Automate page -> rename -> publish -> rename -> delete","user":{"login":"alhambrav","id":25483966,"avatar_url":"https://avatars2.githubusercontent.com/u/25483966?v=4","gravatar_id":"","url":"https://api.github.com/users/alhambrav","html_url":"https://github.com/alhambrav","followers_url":"https://api.github.com/users/alhambrav/followers","following_url":"https://api.github.com/users/alhambrav/following{/other_user}","gists_url":"https://api.github.com/users/alhambrav/gists{/gist_id}","starred_url":"https://api.github.com/users/alhambrav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alhambrav/subscriptions","organizations_url":"https://api.github.com/users/alhambrav/orgs","repos_url":"https://api.github.com/users/alhambrav/repos","events_url":"https://api.github.com/users/alhambrav/events{/privacy}","received_events_url":"https://api.github.com/users/alhambrav/received_events","type":"User","site_admin":false},"labels":[{"id":652117063,"url":"https://api.github.com/repos/craftercms/craftercms/labels/task","name":"task","color":"ff901f","default":false}],"state":"open","locked":false,"assignee":{"login":"luishernandezmonge","id":16946208,"avatar_url":"https://avatars1.githubusercontent.com/u/16946208?v=4","gravatar_id":"","url":"https://api.github.com/users/luishernandezmonge","html_url":"https://github.com/luishernandezmonge","followers_url":"https://api.github.com/users/luishernandezmonge/followers","following_url":"https://api.github.com/users/luishernandezmonge/following{/other_user}","gists_url":"https://api.github.com/users/luishernandezmonge/gists{/gist_id}","starred_url":"https://api.github.com/users/luishernandezmonge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luishernandezmonge/subscriptions","organizations_url":"https://api.github.com/users/luishernandezmonge/orgs","repos_url":"https://api.github.com/users/luishernandezmonge/repos","events_url":"https://api.github.com/users/luishernandezmonge/events{/privacy}","received_events_url":"https://api.github.com/users/luishernandezmonge/received_events","type":"User","site_admin":false},"assignees":[{"login":"luishernandezmonge","id":16946208,"avatar_url":"https://avatars1.githubusercontent.com/u/16946208?v=4","gravatar_id":"","url":"https://api.github.com/users/luishernandezmonge","html_url":"https://github.com/luishernandezmonge","followers_url":"https://api.github.com/users/luishernandezmonge/followers","following_url":"https://api.github.com/users/luishernandezmonge/following{/other_user}","gists_url":"https://api.github.com/users/luishernandezmonge/gists{/gist_id}","starred_url":"https://api.github.com/users/luishernandezmonge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luishernandezmonge/subscriptions","organizations_url":"https://api.github.com/users/luishernandezmonge/orgs","repos_url":"https://api.github.com/users/luishernandezmonge/repos","events_url":"https://api.github.com/users/luishernandezmonge/events{/privacy}","received_events_url":"https://api.github.com/users/luishernandezmonge/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-04-27T14:07:48Z","updated_at":"2018-04-27T14:07:48Z","closed_at":null,"author_association":"MEMBER","body":"Please automate page -> rename -> publish -> rename -> delete, ID 45 in **Studio -> Content**.\r\n\r\n**Setup**\r\n1) Create a site using Editorial BP\r\n2) Open the Sidebar if it's not yet open\r\n3) Expand \"Pages\"\r\n4) Right click on \"articles/2016/12\" and select \"New Content\"\r\n5) Select \"Page - Article\" and click on the \"Ok\" button in the \"Choose Content Type\" screen\r\n6) Put \"foo\" in the \"Page URL\" field\r\n7) Put \"foo\" in the \"Internal Name\" and \"Title\" field\r\n8) For \"Categories\", select \"Entertainment\"\r\n9) Upload an image in the \"Image\" field\r\n10) Fill in the rest of the required fields in the form and save your changes\r\n11) From the Sidebar, navigate to \"articles/2016/12/foo\"\r\n12) Right click on \"foo\" and select \"Approve & Publish\"\r\n13) Select \"Items should go live now\" in the \"Selected Item Scheduling\" field then click on \"Submit\"\r\n14) Setup your site for delivery by running the init-site script\r\n\r\n<img width=\"848\" alt=\"screen shot 2018-04-27 at 9 54 10 am\" src=\"https://user-images.githubusercontent.com/25483966/39366103-f7b8552a-4a00-11e8-92a3-726d233f6023.png\">\r\n\r\n**Steps**\r\n1) Login as admin user and open the site created in the setup\r\n2) Open the Sidebar if it's not yet open\r\n3) In Pages, navigate to \"articles/2016/12/foo\"\r\n4) Right click on \"foo\" and select \"Edit\"\r\n5) In the \"Page Properties\" section, click on the \"Edit\" button next to the \"Page URL\" field\r\n6) Click \"Ok\" on the Warning message\r\n7) Change the \"Page URL\" from \"foo\" to \"bar\"\r\n8) Click on the \"Save and Close\" \r\n9) From the Sidebar, click on the page \"foo\" to preview\r\n10) Click on the Dashboard\r\n11) From the Sidebar, right click on the page \"articles/2016/12/foo\" and select \"Approve & Publish\"\r\n12) Select \"Items should go live now\" then click on \"Submit\"\r\n13) Wait for a minute or so to make sure publishing is done\r\n14) In your browser, go to \"localhost:9080?crafterSite=siteName\", where `siteName` is the name given on the site we're working on and then click on \"Entertainment\" from the left-rail\r\n15) Click on the article \"foo\"\r\n16) Back to Studio, click on the dashboard\r\n17)from the Sidebar, right click on the page \"articles/2016/12/foo\" and select \"Edit\"\r\n18) In the \"Page Properties\" section, click on the \"Edit\" button next to the \"Page URL\" field\r\n19) Click \"Ok\" on the Warning message\r\n20) Change the \"Page URL\" from \"bar\" to \"baz\"\r\n21) Click on the \"Save and Close\" \r\n22) From the Sidebar, click on the page \"foo\" to preview\r\n23) Click on the Dashboard \r\n24) From the Sidebar, right click on the page \"articles/2016/12/foo\" and select \"Delete\"\r\n25) Click on the \"Delete\" button to delete the selected items on the Delete dialog, then click \"OK\" on the notification dialog that selection is being deleted\r\n26) Click on the Dashboard\r\n\r\n**Expected Output**\r\n4) Form for editing page \"foo\" should open\r\n5) A warning message should appear after clicking on \"Edit\"\r\n6) The \"Page URL\" field should now be editable and not grayed out\r\n8) Page should return to previous view (Preview or Dashboard)\r\n9) The URL should contain \"page=/articles/2016/12/bar\"\r\n10) The \"My Recent Activity\" widget should contain the following:\r\n```\r\n    Item Name: foo      Edit: Edit       URL: /articles/2016/12/bar\r\n    Item Name: foo      Edit: Edit       URL: /articles/2016/12/foo  \r\n```\r\n<img width=\"852\" alt=\"screen shot 2018-04-27 at 9 55 10 am\" src=\"https://user-images.githubusercontent.com/25483966/39366300-88730fb0-4a01-11e8-8f22-233c5a524389.png\">\r\n\r\n11) The \"Approve for Publish\" dialog should open\r\n12) The \"Approve for Publish\" dialog should close\r\n15) The page just published should be viewable on the delivery side, with the url http://localhost:9080/articles/2016/12/bar\r\n16) In your dashboard, the \"Recently Published\" widget should contain the following:\r\n```\r\n    Item Name: foo    Edit: Edit    URL: /articles/2016/12/bar\r\n```\r\n<img width=\"852\" alt=\"screen shot 2018-04-27 at 9 58 46 am\" src=\"https://user-images.githubusercontent.com/25483966/39366322-9bd338f0-4a01-11e8-8b9a-4f200921af16.png\">\r\n\r\n17) Form for editing page \"foo\" should open\r\n18) A warning message should appear after clicking on \"Edit\"\r\n19) The \"Page URL\" field should now be editable and not grayed out\r\n21) Page should return to previous view (Preview or Dashboard)\r\n22) The URL should contain \"page=/articles/2016/12/baz\"\r\n23) The \"My Recent Activity\" widget should contain the following:\r\n```\r\n    Item Name: foo      Edit: Edit    URL: /articles/2016/12/baz\r\n    Item Name: bar      Edit: Edit    URL: /articles/2016/12/bar\r\n    Item Name: foo      Edit: Edit    URL: /articles/2016/12/foo  \r\n```\r\n<img width=\"852\" alt=\"screen shot 2018-04-27 at 10 00 26 am\" src=\"https://user-images.githubusercontent.com/25483966/39366410-d78da312-4a01-11e8-88b0-89a07773126d.png\">\r\n\r\n24) The \"Delete\" dialog should open\r\n25) The page should return to previous view (Preview or Dashboard)\r\n26) In your dashboard, the \"My Recent Activity\" widget should contain the following:\r\n```\r\n    Item Name: baz    Edit: Edit    URL: /articles/2016/12/baz\r\n    Item Name: bar    Edit: Edit    URL: /articles/2016/12/bar\r\n    Item Name: foo    Edit: Edit    URL: /articles/2016/12/foo\r\n```\r\n<img width=\"853\" alt=\"screen shot 2018-04-27 at 10 01 37 am\" src=\"https://user-images.githubusercontent.com/25483966/39366478-0555f966-4a02-11e8-85fa-01093516b11a.png\">\r\n\r\n"}}
{"actor":{"display_login":"alhambrav"}}