Commit 787ac996 authored by Rebecca Blundell's avatar Rebecca Blundell Committed by Robert Lyon
Browse files

Bug #1679904 - adding a test for the comments block

This commit tests the adding of a comments block to display comments
to the existing add_delete_comments.feature

removed block that added an external feed to push the comments block
down the page as it was not useful.

Change-Id: Ic82f0b6f8303686256a2e319b3d22e87566683ee
parent d282a559
......@@ -52,6 +52,31 @@ Scenario: Adding and deleting public comments
Then I should not see "Comment by page owner"
And I should not see "Comment removed"
Scenario: Add comments block to page
Given I go to portfolio page "page1"
# The label for message text area - anonymous users
And I should see "Comment"
And I fill in "Name" with "Joe Anonymous"
# No TinyMCE editor for anonymous users
And I fill in "Comment" with "Public comment by anonymous user"
And I enable the switch "Make comment public"
And I press "Comment"
Given I log in as "pageowner" with password "password"
And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "page1" panel menu
And I click on "Edit" in "page1" panel menu
And I wait "1" seconds
# Add a comments block so that comments will now be at the top of the page
And I expand "General" node
And I wait "1" seconds
And I follow "Comments" in the "div#general" "css_element"
And I press "Add"
Then I should see "Comments for this page will be displayed here rather than at the bottom of the page."
And I display the page
Then I should see "Joe Anonymous"
And I should see "Public comment by anonymous user"
Scenario: Comments update the page's mtime
Given I log in as "admin" with password "Kupuhipa1"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment