summaryrefslogtreecommitdiff
path: root/spec/features/labels_hierarchy_spec.rb
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2018-04-05 12:28:49 -0300
committerFelipe Artur <felipefac@gmail.com>2018-04-05 14:58:49 -0300
commit62574be35d5a92c6c825912e1ab9969c5acdb7d9 (patch)
tree7ae7e6fa40e51a88a8e5e5d543caa59d7632d2b9 /spec/features/labels_hierarchy_spec.rb
parent22423d284704c3ec2f7715736a75155d14ff413d (diff)
downloadgitlab-ce-62574be35d5a92c6c825912e1ab9969c5acdb7d9.tar.gz
Fix specs
Diffstat (limited to 'spec/features/labels_hierarchy_spec.rb')
-rw-r--r--spec/features/labels_hierarchy_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/features/labels_hierarchy_spec.rb b/spec/features/labels_hierarchy_spec.rb
index d4a49a1cbf4..3e05e7b7f38 100644
--- a/spec/features/labels_hierarchy_spec.rb
+++ b/spec/features/labels_hierarchy_spec.rb
@@ -115,9 +115,9 @@ feature 'Labels Hierarchy', :js, :nested_groups do
it 'filters by descendant group labels' do
wait_for_requests
- if board
- select_label_on_dropdown(group_label_3.title)
+ select_label_on_dropdown(group_label_3.title)
+ if board
expect(page).to have_selector('.card-title') do |card|
expect(card).not_to have_selector('a', text: labeled_issue_2.title)
end
@@ -126,8 +126,6 @@ feature 'Labels Hierarchy', :js, :nested_groups do
expect(card).to have_selector('a', text: labeled_issue_3.title)
end
else
- select_label_on_dropdown(group_label_3.title)
-
expect_issues_list_count(1)
expect(page).to have_selector('span.issue-title-text', text: labeled_issue_3.title)
end