Commit 5f53ca69 authored by Arinde Eniola's avatar Arinde Eniola

fix failing tests

parent 6745e58f
- labels.each do |l|
%span.label-row
= link_to_label(l, tooltip: false)
\ No newline at end of file
%span.label-row
%span.label-name
= link_to_label(label, tooltip: false)
%span.prepend-left-10
= markdown(label.description, pipeline: :single_line)
\ No newline at end of file
- labels.each do |l|
%span.label-row
= link_to_label(l, tooltip: false)
\ No newline at end of file
......@@ -48,7 +48,7 @@
.gray-content-block.second-block.filtered-labels
- if @labels
= render "shared/label_row", labels: @labels
= render "shared/labels_row", labels: @labels
:javascript
new UsersSelect();
......
......@@ -12,6 +12,7 @@ Feature: Project Issues Filter Labels
@javascript
Scenario: I filter by one label
Given I click link "bug"
And I click "dropdown close button"
Then I should see "Bugfix1" in issues list
And I should see "Bugfix2" in issues list
And I should not see "Feature1" in issues list
......
......@@ -32,6 +32,10 @@ class Spinach::Features::ProjectIssuesFilterLabels < Spinach::FeatureSteps
page.find('.js-label-select').click
sleep 0.5
execute_script("$('.dropdown-menu-labels li:contains(\"bug\") a').click()")
end
step 'I click "dropdown close button"' do
page.first('.labels-filter .dropdown-title .dropdown-menu-close-icon').click
sleep 2
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment