Fixed failing tests
This commit is contained in:
parent
e7ca709a92
commit
051dc1d263
|
@ -32,7 +32,7 @@ module LabelsHelper
|
||||||
# link_to_label(label) { "My Custom Label Text" }
|
# link_to_label(label) { "My Custom Label Text" }
|
||||||
#
|
#
|
||||||
# Returns a String
|
# Returns a String
|
||||||
def link_to_label(label, project: nil, type: :issue, tooltip: true, css_class: '', &block)
|
def link_to_label(label, project: nil, type: :issue, tooltip: true, css_class: nil, &block)
|
||||||
project ||= @project || label.project
|
project ||= @project || label.project
|
||||||
link = send("namespace_project_#{type.to_s.pluralize}_path",
|
link = send("namespace_project_#{type.to_s.pluralize}_path",
|
||||||
project.namespace,
|
project.namespace,
|
||||||
|
|
|
@ -9,7 +9,7 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps
|
||||||
|
|
||||||
step 'I remove label \'bug\'' do
|
step 'I remove label \'bug\'' do
|
||||||
page.within "#label_#{bug_label.id}" do
|
page.within "#label_#{bug_label.id}" do
|
||||||
click_link 'Delete'
|
first(:link, 'Delete').click
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,6 @@ class Spinach::Features::Labels < Spinach::FeatureSteps
|
||||||
private
|
private
|
||||||
|
|
||||||
def subscribe_button
|
def subscribe_button
|
||||||
first('.label-subscribe-button span')
|
first('.label-subscribe-button span', visible: true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue