Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
715d4afb
Commit
715d4afb
authored
Jul 14, 2020
by
Tom Quirk
Committed by
Gabriel Mazetto
Jul 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add group navbar_spec test for wiki menu item
parent
376660e6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
10 deletions
+27
-10
ee/spec/features/groups/navbar_spec.rb
ee/spec/features/groups/navbar_spec.rb
+17
-0
qa/qa/ee/page/group/menu.rb
qa/qa/ee/page/group/menu.rb
+10
-0
qa/qa/page/group/menu.rb
qa/qa/page/group/menu.rb
+0
-10
No files found.
ee/spec/features/groups/navbar_spec.rb
View file @
715d4afb
...
...
@@ -218,4 +218,21 @@ RSpec.describe 'Group navbar' do
it_behaves_like
'verified navigation bar'
end
context
'when group wiki is available'
do
before
do
stub_feature_flags
(
group_wiki:
true
)
insert_after_nav_item
(
_
(
'Analytics'
),
new_nav_item:
{
nav_item:
_
(
'Wiki'
),
nav_sub_items:
[]
}
)
visit
group_path
(
group
)
end
it_behaves_like
'verified navigation bar'
end
end
qa/qa/ee/page/group/menu.rb
View file @
715d4afb
...
...
@@ -44,6 +44,10 @@ module QA
element
:group_sidebar_submenu_content
element
:group_saml_sso_link
end
view
'app/views/layouts/nav/sidebar/_wiki_link.html.haml'
do
element
:wiki_link
end
end
end
...
...
@@ -114,6 +118,12 @@ module QA
end
end
end
def
click_group_wiki_link
within_sidebar
do
click_element
(
:wiki_link
)
end
end
end
end
end
...
...
qa/qa/page/group/menu.rb
View file @
715d4afb
...
...
@@ -19,10 +19,6 @@ 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
)
...
...
@@ -69,12 +65,6 @@ module QA
yield
end
end
def
click_wiki
within_sidebar
do
click_element
(
:wiki_link
)
end
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment