Created
April 6, 2012 11:52
-
-
Save merk/2319155 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ CommentBundle git:(more_testing) ✗ Tests/Functional/app/console behat --verbose | |
| Feature: Embed a thread on a page | |
| Background: # Features/EmbedThread.feature:3 | |
| Given I have a thread identified by "test" with a link of "test" # FOS\CommentBundle\Features\Context\FeatureContext::iHaveAThreadIdentifiedBy() | |
| Scenario: Embed a thread inline # Features/EmbedThread.feature:6 | |
| When I go to "inline/test" # FOS\CommentBundle\Features\Context\FeatureContext::visit() | |
| Then I should see a "#fos_comment_thread[data-thread=test]" element # FOS\CommentBundle\Features\Context\FeatureContext::assertElementOnPage() | |
| Scenario: Embed a thread async # Features/EmbedThread.feature:10 | |
| When I go to "async/test" # FOS\CommentBundle\Features\Context\FeatureContext::visit() | |
| Then I should see a "#fos_comment_thread[data-thread=test]" element # FOS\CommentBundle\Features\Context\FeatureContext::assertElementOnPage() | |
| @javascript | |
| Scenario: Reply to a thread # Features/EmbedThread.feature:15 | |
| When I go to "async/test" # FOS\CommentBundle\Features\Context\FeatureContext::visit() | |
| And I fill in "fos_comment_comment_body" with "I am replying to a comment" # FOS\CommentBundle\Features\Context\FeatureContext::fillField() | |
| And I press "fos_comment_comment_new_submit" # FOS\CommentBundle\Features\Context\FeatureContext::pressButton() | |
| And I want for the request to complete # FOS\CommentBundle\Features\Context\FeatureContext::iWantForTheRequestToComplete() | |
| Then I should see "I am replying to a comment" in the ".fos_comment_comment_body" element # FOS\CommentBundle\Features\Context\FeatureContext::assertElementContainsText() | |
| Element matching css ".fos_comment_comment_body" not found | |
| +--[ HTTP/1.1 200 | http://127.0.0.1:8080/comment_api/threads/test/comments | ZombieDriver ] | |
| | | |
| | <body></body> | |
| | | |
| 3 scenarios (2 passed, 1 failed) | |
| 12 steps (11 passed, 1 failed) | |
| 0m14.012s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment