BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d1450af8
Unverified
Commit
d1450af8
authored
Oct 16, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for last commit info on project home page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
9fd48229
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
projects.scss
app/assets/stylesheets/pages/projects.scss
+2
-0
project.feature
features/project/project.feature
+6
-0
project.rb
features/steps/shared/project.rb
+7
-0
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
d1450af8
...
...
@@ -513,6 +513,8 @@ pre.light-well {
}
.project-last-commit
{
margin
:
0
7px
;
.ci-status
{
margin-right
:
16px
;
}
...
...
features/project/project.feature
View file @
d1450af8
...
...
@@ -31,6 +31,12 @@ Feature: Project
And
I visit project
"Shop"
page
Then
I should see project
"Shop"
README
Scenario
:
I
should see last commit with CI
Given
project
"Shop"
has CI enabled
Given
project
"Shop"
has CI build
And
I visit project
"Shop"
page
And
I should see last commit with CI status
@javascript
Scenario
:
I
should see project activity
When
I visit project
"Shop"
activity page
...
...
features/steps/shared/project.rb
View file @
d1450af8
...
...
@@ -206,4 +206,11 @@ module SharedProject
project
=
Project
.
find_by
(
name:
"Shop"
)
create
:ci_commit
,
gl_project:
project
,
sha:
project
.
commit
.
sha
end
step
'I should see last commit with CI status'
do
page
.
within
".project-last-commit"
do
expect
(
page
).
to
have_content
(
project
.
commit
.
sha
[
0
..
6
])
expect
(
page
).
to
have_content
(
"skipped"
)
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