Commit de0977c8 authored by Desiree Chevalier's avatar Desiree Chevalier

Clean up scoped label spec

parent b27ccc99
...@@ -99,10 +99,6 @@ module QA ...@@ -99,10 +99,6 @@ module QA
refresh refresh
end end
def text_of_labels_block
find_element(:labels_block)
end
def toggle_more_assignees_link def toggle_more_assignees_link
click_element(:more_assignees_link) click_element(:more_assignees_link)
end end
......
...@@ -44,13 +44,13 @@ module QA ...@@ -44,13 +44,13 @@ module QA
show.select_all_activities_filter show.select_all_activities_filter
expect(show.text_of_labels_block).to have_content(new_label_same_scope.gsub('::', ' ')) expect(show).to have_label(new_label_same_scope)
expect(show.text_of_labels_block).to have_content(new_label_different_scope.gsub('::', ' ')) expect(show).to have_label(new_label_different_scope)
expect(show.text_of_labels_block).to have_content('group::car porsche') expect(show).to have_label('group::car::porsche')
expect(show.text_of_labels_block).to have_content('group::truck mercedes-bens') expect(show).to have_label('group::truck::mercedes-bens')
expect(show.text_of_labels_block).not_to have_content(initial_label.gsub('::', ' ')) expect(show).not_to have_label(initial_label)
expect(show.text_of_labels_block).not_to have_content('group::car ferrari') expect(show).not_to have_label('group::car::ferrari')
end end
end end
end 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