Skip to content
Snippets Groups Projects
Verified Commit 833bc305 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Add test for createing issue with labels

parent 0f474887
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -30,6 +30,13 @@ Feature: Project Issues
And I submit new issue "500 error on profile"
Then I should see issue "500 error on profile"
 
Scenario: I submit new unassigned issue with labels
Given project "Shop" has labels: "bug", "feature", "enhancement"
And I click link "New Issue"
And I submit new issue "500 error on profile" with label 'bug'
Then I should see issue "500 error on profile"
And I should see label 'bug' with issue
@javascript
Scenario: I comment issue
Given I visit issue page "Release 0.4"
Loading
Loading
Loading
Loading
@@ -50,10 +50,22 @@ class ProjectIssues < Spinach::FeatureSteps
click_button "Submit new issue"
end
 
step 'I submit new issue "500 error on profile" with label \'bug\'' do
fill_in "issue_title", with: "500 error on profile"
select 'bug', from: "Labels"
click_button "Submit new issue"
end
Given 'I click link "500 error on profile"' do
click_link "500 error on profile"
end
 
step 'I should see label \'bug\' with issue' do
within '.issue-show-labels' do
page.should have_content 'bug'
end
end
Then 'I should see issue "500 error on profile"' do
issue = Issue.find_by(title: "500 error on profile")
page.should have_content issue.title
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment