diff options
author | Arinde Eniola <eniolaarinde1@gmail.com> | 2016-04-14 11:16:24 +0100 |
---|---|---|
committer | Arinde Eniola <eniolaarinde1@gmail.com> | 2016-04-14 11:16:24 +0100 |
commit | 5f53ca69ace953bf06afe478072836d083f941ca (patch) | |
tree | c4163a78a5bc2e0a4d6900991130b2791ba15399 /features | |
parent | 6745e58f8f809a6813ac42fcd2ac82729234df1e (diff) | |
download | gitlab-ce-5f53ca69ace953bf06afe478072836d083f941ca.tar.gz |
fix failing tests
Diffstat (limited to 'features')
-rw-r--r-- | features/project/issues/filter_labels.feature | 1 | ||||
-rw-r--r-- | features/steps/project/issues/filter_labels.rb | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/features/project/issues/filter_labels.feature b/features/project/issues/filter_labels.feature index e07f8053fb7..49d7a3b9af2 100644 --- a/features/project/issues/filter_labels.feature +++ b/features/project/issues/filter_labels.feature @@ -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 diff --git a/features/steps/project/issues/filter_labels.rb b/features/steps/project/issues/filter_labels.rb index 6d50501a722..d82c6856918 100644 --- a/features/steps/project/issues/filter_labels.rb +++ b/features/steps/project/issues/filter_labels.rb @@ -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 |