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

36 lines
933 B
Gherkin
Raw Normal View History

2013-03-01 14:58:34 +02:00
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
2013-07-24 18:17:30 +03:00
Given I am on "/blog/3.html"
2013-03-01 14:58:34 +02:00
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 |
2013-07-24 18:17:30 +03:00
Then I should see in element by css "content .comment-author" values:
2013-03-01 14:58:34 +02:00
| value |
| /profile/admin/">admin</a> |
2013-07-24 18:17:30 +03:00
Then I should see in element by css "content .comment-actions" values:
| value |
2013-03-01 14:58:34 +02:00
| Reply |
| Delete |