Commit b568ca05 authored by peterhegman's avatar peterhegman

Fix failing QA spec

Click new "Groups" tab
parent 26dabab1
......@@ -33,7 +33,7 @@
%span.badge.badge-pill= @members.total_count
- if @group.shared_with_group_links.any?
%li.nav-item
= link_to '#tab-groups', class: ['nav-link'] , data: { toggle: 'tab' } do
= link_to '#tab-groups', class: ['nav-link'] , data: { toggle: 'tab', qa_selector: 'groups_list_tab' } do
%span
= _('Groups')
%span.badge.badge-pill= @group.shared_with_group_links.count
......
......@@ -25,6 +25,7 @@ module QA
view 'app/views/groups/group_members/index.html.haml' do
element :invite_group_tab
element :groups_list_tab
element :groups_list
end
......@@ -71,6 +72,8 @@ module QA
end
def has_existing_group_share?(group_name)
click_element :groups_list_tab
within_element(:groups_list) do
has_element?(:group_row, text: group_name)
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