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