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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
dfe3ca5e
Commit
dfe3ca5e
authored
May 12, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added specs to test for subgroup titles on issue and mr pages
parent
c47dfc9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
spec/features/projects/sub_group_issuables_spec.rb
spec/features/projects/sub_group_issuables_spec.rb
+29
-0
spec/support/features/has_subgroup_title_spec.rb
spec/support/features/has_subgroup_title_spec.rb
+8
-0
No files found.
spec/features/projects/sub_group_issuables_spec.rb
0 → 100644
View file @
dfe3ca5e
require
'spec_helper'
describe
'Subgroup Issuables'
,
:feature
,
:js
do
let!
(
:parent_group
)
{
create
(
:group
,
name:
'parentgroup'
)
}
let!
(
:subgroup
)
{
create
(
:group
,
parent:
parent_group
,
name:
'subgroup'
)
}
let!
(
:project
)
{
create
(
:empty_project
,
namespace:
subgroup
,
name:
'project'
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
project
.
add_master
(
user
)
login_as
user
end
context
'empty issues index'
do
before
do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
end
it_behaves_like
'has subgroup title'
,
'parentgroup'
,
'subgroup'
,
'project'
end
context
'empty merge request index'
do
before
do
visit
namespace_project_merge_requests_path
(
project
.
namespace
,
project
)
end
it_behaves_like
'has subgroup title'
,
'parentgroup'
,
'subgroup'
,
'project'
end
end
spec/support/features/has_subgroup_title_spec.rb
0 → 100644
View file @
dfe3ca5e
shared_examples
'has subgroup title'
do
|
parent_group_name
,
subgroup_name
,
project_name
|
it
'should show the full title'
do
title
=
find
(
'.title-container'
)
expect
(
title
).
not_to
have_selector
'.initializing'
expect
(
title
).
to
have_content
"
#{
parent_group_name
}
/
#{
subgroup_name
}
/
#{
project_name
}
"
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