2015-12-09 09:50:28 +00:00
|
|
|
@project_commits
|
2014-10-02 16:42:54 +00:00
|
|
|
Feature: Project Commits Comments
|
2012-09-10 11:27:11 +00:00
|
|
|
Background:
|
|
|
|
Given I sign in as a user
|
2012-06-15 04:15:28 +00:00
|
|
|
And I own project "Shop"
|
2013-01-14 22:55:02 +00:00
|
|
|
And I visit project commit page
|
2012-06-15 04:15:28 +00:00
|
|
|
|
2012-08-03 16:59:55 +00:00
|
|
|
@javascript
|
2013-01-14 22:55:02 +00:00
|
|
|
Scenario: I can comment on a commit
|
2012-08-03 16:59:55 +00:00
|
|
|
Given I leave a comment like "XML attached"
|
2013-01-14 22:55:02 +00:00
|
|
|
Then I should see a comment saying "XML attached"
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I can't cancel the main form
|
|
|
|
Then I should not see the cancel comment button
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I can preview with text
|
2014-10-17 04:36:52 +00:00
|
|
|
Given I write a comment like ":+1: Nice"
|
|
|
|
Then The comment preview tab should be display rendered Markdown
|
2013-01-14 22:55:02 +00:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I preview a comment
|
|
|
|
Given I preview a comment text like "Bug fixed :smile:"
|
|
|
|
Then I should see the comment preview
|
|
|
|
And I should not see the comment text field
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I can edit after preview
|
|
|
|
Given I preview a comment text like "Bug fixed :smile:"
|
2014-10-17 04:36:52 +00:00
|
|
|
Then I should see the comment write tab
|
2013-01-14 22:55:02 +00:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I have a reset form after posting from preview
|
|
|
|
Given I preview a comment text like "Bug fixed :smile:"
|
|
|
|
And I submit the comment
|
|
|
|
Then I should see an empty comment text field
|
|
|
|
And I should not see the comment preview
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I can delete a comment
|
|
|
|
Given I leave a comment like "XML attached"
|
2015-06-19 02:13:32 +00:00
|
|
|
Then I should see a comment saying "XML attached"
|
2013-01-14 22:55:02 +00:00
|
|
|
And I delete a comment
|
|
|
|
Then I should not see a comment saying "XML attached"
|
2015-03-02 23:05:23 +00:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I can edit a comment with +1
|
|
|
|
Given I leave a comment like "XML attached"
|
|
|
|
And I edit the last comment with a +1
|
|
|
|
Then I should see +1 in the description
|