Commit 376660e6 authored by Tom Quirk's avatar Tom Quirk Committed by Gabriel Mazetto

Declare wiki_link element in view for partial

parent 8261899c
......@@ -202,6 +202,7 @@ RSpec.describe 'layouts/nav/sidebar/_group' do
describe 'wiki tab' do
let(:can_read_wiki) { true }
let_it_be(:current_user) { create(:user) }
before do
......
......@@ -12,7 +12,6 @@ module QA
element :group_members_item
element :group_milestones_link
element :group_settings_item
element :wiki_link
end
view 'app/views/layouts/nav/sidebar/_analytics_links.html.haml' do
......@@ -20,6 +19,10 @@ module QA
element :analytics_sidebar_submenu
end
view 'app/views/layouts/nav/sidebar/_wiki_link.html.haml' do
element :wiki_link
end
def click_group_members_item
within_sidebar do
click_element(:group_members_item)
......
......@@ -15,11 +15,14 @@ module QA
view 'app/views/layouts/nav/sidebar/_project.html.haml' do
element :activity_link
element :merge_requests_link
element :wiki_link
element :snippets_link
element :members_link
end
view 'app/views/layouts/nav/sidebar/_wiki_link.html.haml' do
element :wiki_link
end
def click_merge_requests
within_sidebar do
click_element(:merge_requests_link)
......
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