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
bce11e04
Commit
bce11e04
authored
Aug 31, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed up a bunch EE nav specs
parent
d189d5f7
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
24 additions
and
15 deletions
+24
-15
app/views/layouts/nav/_new_project_sidebar.html.haml
app/views/layouts/nav/_new_project_sidebar.html.haml
+5
-0
features/steps/groups_management.rb
features/steps/groups_management.rb
+4
-4
spec/ee/spec/features/groups/group_settings_spec.rb
spec/ee/spec/features/groups/group_settings_spec.rb
+2
-2
spec/ee/spec/features/issues/sub_nav_ee_spec.rb
spec/ee/spec/features/issues/sub_nav_ee_spec.rb
+1
-1
spec/features/boards/board_with_milestone_spec.rb
spec/features/boards/board_with_milestone_spec.rb
+2
-0
spec/features/groups/audit_events_spec.rb
spec/features/groups/audit_events_spec.rb
+1
-1
spec/features/groups/group_settings_spec.rb
spec/features/groups/group_settings_spec.rb
+2
-2
spec/features/groups/merge_requests_spec.rb
spec/features/groups/merge_requests_spec.rb
+1
-1
spec/features/groups/pipeline_quota_spec.rb
spec/features/groups/pipeline_quota_spec.rb
+1
-1
spec/features/issues/csv_spec.rb
spec/features/issues/csv_spec.rb
+3
-1
spec/features/profiles/pipeline_quota_spec.rb
spec/features/profiles/pipeline_quota_spec.rb
+1
-1
spec/features/projects/audit_events_spec.rb
spec/features/projects/audit_events_spec.rb
+1
-1
No files found.
app/views/layouts/nav/_new_project_sidebar.html.haml
View file @
bce11e04
...
@@ -70,6 +70,11 @@
...
@@ -70,6 +70,11 @@
=
link_to
charts_project_graph_path
(
@project
,
current_ref
)
do
=
link_to
charts_project_graph_path
(
@project
,
current_ref
)
do
#{
_
(
'Charts'
)
}
#{
_
(
'Charts'
)
}
-
if
@project
.
feature_available?
(
:file_locks
)
=
nav_link
(
controller:
[
:path_locks
])
do
=
link_to
project_path_locks_path
(
@project
)
do
#{
_
(
'Locked Files'
)
}
-
if
project_nav_tab?
:container_registry
-
if
project_nav_tab?
:container_registry
=
nav_link
(
controller:
%w[projects/registry/repositories]
)
do
=
nav_link
(
controller:
%w[projects/registry/repositories]
)
do
=
sidebar_link
project_container_registry_index_path
(
@project
),
title:
_
(
'Container Registry'
),
css:
'shortcuts-container-registry'
do
=
sidebar_link
project_container_registry_index_path
(
@project
),
title:
_
(
'Container Registry'
),
css:
'shortcuts-container-registry'
do
...
...
features/steps/groups_management.rb
View file @
bce11e04
...
@@ -23,7 +23,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
...
@@ -23,7 +23,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
step
'I go to "Open" project members page'
do
step
'I go to "Open" project members page'
do
click_link
'Sourcing / Open'
click_link
'Sourcing / Open'
page
.
within
(
'.
layout-nav
'
)
do
page
.
within
(
'.
nav-sidebar
'
)
do
click_link
'Settings'
click_link
'Settings'
end
end
click_link
'Members'
click_link
'Members'
...
@@ -46,10 +46,10 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
...
@@ -46,10 +46,10 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
step
'I go to group settings page'
do
step
'I go to group settings page'
do
visit
dashboard_groups_path
visit
dashboard_groups_path
click_link
'Sourcing'
click_link
'Sourcing'
page
.
within
'.
layout-nav
'
do
page
.
within
'.
nav-sidebar
'
do
find
(
'a'
,
text:
'Settings'
).
trigger
(
'click'
)
find
(
'a'
,
text:
'Settings'
).
trigger
(
'click'
)
end
end
page
.
within
'.s
ub-nav
'
do
page
.
within
'.s
idebar-top-level-items > .active
'
do
find
(
'a'
,
text:
'General'
).
trigger
(
'click'
)
find
(
'a'
,
text:
'General'
).
trigger
(
'click'
)
end
end
end
end
...
@@ -61,7 +61,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
...
@@ -61,7 +61,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
step
'I go to project settings'
do
step
'I go to project settings'
do
@project
=
Project
.
find_by
(
name:
"Open"
)
@project
=
Project
.
find_by
(
name:
"Open"
)
page
.
within
'.
sub-nav
'
do
page
.
within
'.
nav-sidebar
'
do
click_link
'Projects'
click_link
'Projects'
end
end
...
...
spec/ee/spec/features/groups/group_settings_spec.rb
View file @
bce11e04
...
@@ -15,7 +15,7 @@ feature 'Edit group settings' do
...
@@ -15,7 +15,7 @@ feature 'Edit group settings' do
visit
edit_group_path
(
group
)
visit
edit_group_path
(
group
)
within
(
'.
sub-nav
'
)
do
within
(
'.
nav-sidebar
'
)
do
expect
(
page
).
to
have_link
(
'Webhooks'
)
expect
(
page
).
to
have_link
(
'Webhooks'
)
end
end
end
end
...
@@ -27,7 +27,7 @@ feature 'Edit group settings' do
...
@@ -27,7 +27,7 @@ feature 'Edit group settings' do
visit
edit_group_path
(
group
)
visit
edit_group_path
(
group
)
within
(
'.
sub-nav
'
)
do
within
(
'.
nav-sidebar
'
)
do
expect
(
page
).
not_to
have_link
(
'Webhooks'
)
expect
(
page
).
not_to
have_link
(
'Webhooks'
)
end
end
end
end
...
...
spec/ee/spec/features/issues/sub_nav_ee_spec.rb
View file @
bce11e04
...
@@ -12,6 +12,6 @@ describe 'Issues sub nav EE' do
...
@@ -12,6 +12,6 @@ describe 'Issues sub nav EE' do
end
end
it
'should have a `Boards` item'
do
it
'should have a `Boards` item'
do
expect
(
find
(
'.
sub-nav
'
)).
to
have_content
'Boards'
expect
(
find
(
'.
nav-sidebar
'
)).
to
have_content
'Boards'
end
end
end
end
spec/features/boards/board_with_milestone_spec.rb
View file @
bce11e04
...
@@ -8,6 +8,8 @@ describe 'Board with milestone', :js do
...
@@ -8,6 +8,8 @@ describe 'Board with milestone', :js do
let!
(
:issue_milestone
)
{
create
(
:closed_issue
,
project:
project
,
milestone:
milestone
)
}
let!
(
:issue_milestone
)
{
create
(
:closed_issue
,
project:
project
,
milestone:
milestone
)
}
before
do
before
do
allow_any_instance_of
(
ApplicationHelper
).
to
receive
(
:collapsed_sidebar?
).
and_return
(
true
)
project
.
team
<<
[
user
,
:master
]
project
.
team
<<
[
user
,
:master
]
sign_in
(
user
)
sign_in
(
user
)
...
...
spec/features/groups/audit_events_spec.rb
View file @
bce11e04
...
@@ -47,7 +47,7 @@ feature 'Groups > Audit Events', :js do
...
@@ -47,7 +47,7 @@ feature 'Groups > Audit Events', :js do
end
end
# This is to avoid a Capybara::Poltergeist::MouseEventFailed error
# This is to avoid a Capybara::Poltergeist::MouseEventFailed error
find
(
'a[
title
=Settings]'
).
trigger
(
'click'
)
find
(
'a[
aria-label
=Settings]'
).
trigger
(
'click'
)
click_link
'Audit Events'
click_link
'Audit Events'
...
...
spec/features/groups/group_settings_spec.rb
View file @
bce11e04
...
@@ -19,7 +19,7 @@ feature 'Edit group settings' do
...
@@ -19,7 +19,7 @@ feature 'Edit group settings' do
scenario
'is able to navigate to LDAP group section'
do
scenario
'is able to navigate to LDAP group section'
do
visit
edit_group_path
(
group
)
visit
edit_group_path
(
group
)
expect
(
find
(
'
div.sub-nav
'
)).
to
have_content
(
'LDAP Group'
)
expect
(
find
(
'
.nav-sidebar
'
)).
to
have_content
(
'LDAP Group'
)
end
end
context
'with owners not being able to manage LDAP'
do
context
'with owners not being able to manage LDAP'
do
...
@@ -28,7 +28,7 @@ feature 'Edit group settings' do
...
@@ -28,7 +28,7 @@ feature 'Edit group settings' do
visit
edit_group_path
(
group
)
visit
edit_group_path
(
group
)
expect
(
find
(
'
div.sub-nav
'
)).
not_to
have_content
(
'LDAP Group'
)
expect
(
find
(
'
.nav-sidebar
'
)).
not_to
have_content
(
'LDAP Group'
)
end
end
end
end
end
end
...
...
spec/features/groups/merge_requests_spec.rb
View file @
bce11e04
...
@@ -23,7 +23,7 @@ feature 'Group merge requests page' do
...
@@ -23,7 +23,7 @@ feature 'Group merge requests page' do
end
end
it
'ignores archived merge request count badges in navbar'
do
it
'ignores archived merge request count badges in navbar'
do
expect
(
page
.
find
(
'[
title
="Merge Requests"] span.badge.count'
).
text
).
to
eq
(
"1"
)
expect
(
page
.
find
(
'[
aria-label
="Merge Requests"] span.badge.count'
).
text
).
to
eq
(
"1"
)
end
end
it
'ignores archived merge request count badges in state-filters'
do
it
'ignores archived merge request count badges in state-filters'
do
...
...
spec/features/groups/pipeline_quota_spec.rb
View file @
bce11e04
...
@@ -16,7 +16,7 @@ feature 'Groups > Pipeline Quota' do
...
@@ -16,7 +16,7 @@ feature 'Groups > Pipeline Quota' do
it
'is not linked within the group settings dropdown'
do
it
'is not linked within the group settings dropdown'
do
visit
group_path
(
group
)
visit
group_path
(
group
)
page
.
within
(
'.
layout-nav
'
)
do
page
.
within
(
'.
nav-sidebar
'
)
do
expect
(
page
).
not_to
have_selector
(
:link_or_button
,
'Pipeline Quota'
)
expect
(
page
).
not_to
have_selector
(
:link_or_button
,
'Pipeline Quota'
)
end
end
end
end
...
...
spec/features/issues/csv_spec.rb
View file @
bce11e04
...
@@ -14,7 +14,9 @@ describe 'Issues csv' do
...
@@ -14,7 +14,9 @@ describe 'Issues csv' do
def
request_csv
(
params
=
{})
def
request_csv
(
params
=
{})
visit
project_issues_path
(
project
,
params
)
visit
project_issues_path
(
project
,
params
)
click_on
'Export as CSV'
page
.
within
(
'.breadcrumbs'
)
do
click_on
'Export as CSV'
end
click_on
'Export issues'
click_on
'Export issues'
end
end
...
...
spec/features/profiles/pipeline_quota_spec.rb
View file @
bce11e04
...
@@ -12,7 +12,7 @@ feature 'Profile > Pipeline Quota' do
...
@@ -12,7 +12,7 @@ feature 'Profile > Pipeline Quota' do
it
'is linked within the profile page'
do
it
'is linked within the profile page'
do
visit
profile_path
visit
profile_path
page
.
within
(
'.
layout-nav
'
)
do
page
.
within
(
'.
nav-sidebar
'
)
do
expect
(
page
).
to
have_selector
(
:link_or_button
,
'Pipeline quota'
)
expect
(
page
).
to
have_selector
(
:link_or_button
,
'Pipeline quota'
)
end
end
end
end
...
...
spec/features/projects/audit_events_spec.rb
View file @
bce11e04
...
@@ -98,7 +98,7 @@ feature 'Projects > Audit Events', :js do
...
@@ -98,7 +98,7 @@ feature 'Projects > Audit Events', :js do
end
end
# This is to avoid a Capybara::Poltergeist::MouseEventFailed error
# This is to avoid a Capybara::Poltergeist::MouseEventFailed error
find
(
'a[
title
=Settings]'
).
trigger
(
'click'
)
find
(
'a[
aria-label
=Settings]'
).
trigger
(
'click'
)
click_link
'Audit Events'
click_link
'Audit Events'
...
...
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