Skip to content
Snippets Groups Projects
Commit 1fd58c84 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Merge pull request #7741 from Razer6/refactor/remove_duplicate_steps

[Refactor] Remove duplicated labels step
parents 5ac01994 8321a4d4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -6,8 +6,8 @@ Feature: Project Labels
Given I visit project "Shop" labels page
 
Scenario: I should see labels list
Then I should see label "bug"
And I should see label "feature"
Then I should see label 'bug'
And I should see label 'feature'
 
Scenario: I create new label
Given I visit project "Shop" new label page
Loading
Loading
Loading
Loading
@@ -3,18 +3,6 @@ class ProjectLabels < Spinach::FeatureSteps
include SharedProject
include SharedPaths
 
step 'I should see label "bug"' do
within ".manage-labels-list" do
page.should have_content "bug"
end
end
step 'I should see label "feature"' do
within ".manage-labels-list" do
page.should have_content "feature"
end
end
step 'I visit \'bug\' label edit page' do
visit edit_project_label_path(project, bug_label)
end
Loading
Loading
@@ -71,6 +59,12 @@ class ProjectLabels < Spinach::FeatureSteps
end
end
 
step 'I should see label \'feature\'' do
within '.manage-labels-list' do
page.should have_content 'feature'
end
end
step 'I should see label \'bug\'' do
within '.manage-labels-list' do
page.should have_content 'bug'
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