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
73b64f1f
Commit
73b64f1f
authored
May 29, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for Merge Request fixed
Fixed couple of spinach test
parent
4b6ab497
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+2
-1
app/views/layouts/header/_new_dropdown.haml
app/views/layouts/header/_new_dropdown.haml
+1
-1
features/steps/project/merge_requests.rb
features/steps/project/merge_requests.rb
+3
-1
features/steps/project/snippets.rb
features/steps/project/snippets.rb
+3
-1
No files found.
app/assets/stylesheets/framework/dropdowns.scss
View file @
73b64f1f
...
@@ -267,7 +267,8 @@
...
@@ -267,7 +267,8 @@
padding
:
0
16px
;
padding
:
0
16px
;
}
}
.separator
+
.dropdown-header
,
.separator
+
.dropdown-bold-header
{
.separator
+
.dropdown-header
,
.separator
+
.dropdown-bold-header
{
padding-top
:
2px
;
padding-top
:
2px
;
}
}
...
...
app/views/layouts/header/_new_dropdown.haml
View file @
73b64f1f
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
-
create_project_issue
=
can?
(
current_user
,
:create_issue
,
@project
)
-
create_project_issue
=
can?
(
current_user
,
:create_issue
,
@project
)
-
merge_project
=
can?
(
current_user
,
:create_merge_request
,
@project
)
?
@project
:
(
current_user
&&
current_user
.
fork_of
(
@project
))
-
merge_project
=
can?
(
current_user
,
:create_merge_request
,
@project
)
?
@project
:
(
current_user
&&
current_user
.
fork_of
(
@project
))
-
create_project_snippet
=
can?
(
current_user
,
:create_project_snippet
,
@project
)
-
create_project_snippet
=
can?
(
current_user
,
:create_project_snippet
,
@project
)
-
if
(
create_project_issue
||
create_project_mr
||
create_project_snippet
)
-
if
(
create_project_issue
||
merge_project
||
create_project_snippet
)
%li
.dropdown-bold-header
This project
%li
.dropdown-bold-header
This project
-
if
create_project_issue
-
if
create_project_issue
%li
%li
...
...
features/steps/project/merge_requests.rb
View file @
73b64f1f
...
@@ -14,8 +14,10 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
...
@@ -14,8 +14,10 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
end
step
'I click link "New Merge Request"'
do
step
'I click link "New Merge Request"'
do
page
.
within
'#content-body'
do
page
.
has_link?
(
'New Merge Request'
)
?
click_link
(
"New Merge Request"
)
:
click_link
(
'New merge request'
)
page
.
has_link?
(
'New Merge Request'
)
?
click_link
(
"New Merge Request"
)
:
click_link
(
'New merge request'
)
end
end
end
step
'I click link "Bug NS-04"'
do
step
'I click link "Bug NS-04"'
do
click_link
"Bug NS-04"
click_link
"Bug NS-04"
...
...
features/steps/project/snippets.rb
View file @
73b64f1f
...
@@ -23,8 +23,10 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
...
@@ -23,8 +23,10 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
end
step
'I click link "New snippet"'
do
step
'I click link "New snippet"'
do
page
.
within
'#content-body'
do
first
(
:link
,
"New snippet"
).
click
first
(
:link
,
"New snippet"
).
click
end
end
end
step
'I click link "Snippet one"'
do
step
'I click link "Snippet one"'
do
click_link
"Snippet one"
click_link
"Snippet one"
...
...
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