Commit c9387de0 authored by Mek Stittri's avatar Mek Stittri

Merge branch 'qa-clean-up-scoped-label-spec' into 'master'

Clean up scoped label spec

Closes #224538

See merge request gitlab-org/gitlab!35368
parents 0fd41087 de0977c8
......@@ -99,10 +99,6 @@ module QA
refresh
end
def text_of_labels_block
find_element(:labels_block)
end
def toggle_more_assignees_link
click_element(:more_assignees_link)
end
......
......@@ -44,13 +44,13 @@ module QA
show.select_all_activities_filter
expect(show.text_of_labels_block).to have_content(new_label_same_scope.gsub('::', ' '))
expect(show.text_of_labels_block).to have_content(new_label_different_scope.gsub('::', ' '))
expect(show.text_of_labels_block).to have_content('group::car porsche')
expect(show.text_of_labels_block).to have_content('group::truck mercedes-bens')
expect(show).to have_label(new_label_same_scope)
expect(show).to have_label(new_label_different_scope)
expect(show).to have_label('group::car::porsche')
expect(show).to have_label('group::truck::mercedes-bens')
expect(show.text_of_labels_block).not_to have_content(initial_label.gsub('::', ' '))
expect(show.text_of_labels_block).not_to have_content('group::car ferrari')
expect(show).not_to have_label(initial_label)
expect(show).not_to have_label('group::car::ferrari')
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