1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00
ifhub.club/application/tests/behat/features/comment.feature

36 lines
933 B
Gherkin

Feature: Test Base comment functionality (!!!SELENIUM NEEDED)
Test base functionality of Comments
@mink:selenium2
Scenario: Adding the comment
Given I am on "/login"
Then I want to login as "admin"
Given I am on homepage
Given I am on "/blog/3.html"
Then I follow "Add comment"
And I fill in "test comment" for "comment_text"
And I press "Preview"
Then I wait "1000"
Then I should see in element by css "content .comment-preview" values:
| value |
| test comment |
And I press "Add"
Then I wait "1000"
Then I should see in element by css "content .comment-content" values:
| value |
| test comment |
Then I should see in element by css "content .comment-author" values:
| value |
| /profile/admin/">admin</a> |
Then I should see in element by css "content .comment-actions" values:
| value |
| Reply |
| Delete |