summaryrefslogtreecommitdiff
path: root/features/project/issues
diff options
context:
space:
mode:
authorVinnie Okada <vokada@mrvinn.com>2014-10-06 01:59:03 -0500
committerVinnie Okada <vokada@mrvinn.com>2014-10-06 02:07:03 -0500
commit31bc42de57b3cfd7bf068df06d15372307b8661b (patch)
treeab39133233b504da60674a61c3b25a1a80b0a753 /features/project/issues
parent3a3b2eb33e2ca41153a960b89ae7796b43aa93e8 (diff)
downloadgitlab-ce-31bc42de57b3cfd7bf068df06d15372307b8661b.tar.gz
Add Spinach tests for task lists
Diffstat (limited to 'features/project/issues')
-rw-r--r--features/project/issues/issues.feature33
1 files changed, 33 insertions, 0 deletions
diff --git a/features/project/issues/issues.feature b/features/project/issues/issues.feature
index ae6a03ce865..e989569ccd4 100644
--- a/features/project/issues/issues.feature
+++ b/features/project/issues/issues.feature
@@ -126,3 +126,36 @@ Feature: Project Issues
When I click label 'bug'
And I should see "Release 0.4" in issues
And I should not see "Tweet control" in issues
+
+ Scenario: Issue description should render task checkboxes
+ Given project "Shop" has "Tasks-open" open issue with task markdown
+ When I visit issue page "Tasks-open"
+ Then I should see task checkboxes in the description
+
+ @javascript
+ Scenario: Issue notes should not render task checkboxes
+ Given project "Shop" has "Tasks-open" open issue with task markdown
+ When I visit issue page "Tasks-open"
+ And I leave a comment with task markdown
+ Then I should not see task checkboxes in the comment
+
+ # Task status in issues list
+
+ Scenario: Issues list should display task status
+ Given project "Shop" has "Tasks-open" open issue with task markdown
+ When I visit project "Shop" issues page
+ Then I should see the task status for issue "Tasks-open"
+
+ # Toggling task items
+
+ @javascript
+ Scenario: Task checkboxes should be enabled for an open issue
+ Given project "Shop" has "Tasks-open" open issue with task markdown
+ When I visit issue page "Tasks-open"
+ Then Task checkboxes should be enabled
+
+ @javascript
+ Scenario: Task checkboxes should be disabled for a closed issue
+ Given project "Shop" has "Tasks-closed" closed issue with task markdown
+ When I visit issue page "Tasks-closed"
+ Then Task checkboxes should be disabled