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
56f6c6ac
Commit
56f6c6ac
authored
Mar 13, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test showing pipelines on the dashboard
parent
9ce549b2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
changelogs/unreleased/27376-cache-default-branch-pipeline-on-project.yml
...leased/27376-cache-default-branch-pipeline-on-project.yml
+4
-0
spec/features/dashboard/projects_spec.rb
spec/features/dashboard/projects_spec.rb
+24
-2
No files found.
changelogs/unreleased/27376-cache-default-branch-pipeline-on-project.yml
0 → 100644
View file @
56f6c6ac
---
title
:
Speed up project dashboard by caching pipeline status and eager loading routes
merge_request
:
9903
author
:
spec/features/dashboard/projects_spec.rb
View file @
56f6c6ac
require
'spec_helper'
RSpec
.
describe
'Dashboard Projects'
,
feature:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
name:
"awesome stuff"
)
}
before
do
project
.
team
<<
[
user
,
:developer
]
login_as
user
visit
dashboard_projects_path
end
it
'shows the project the user in a member of in the list'
do
visit
dashboard_projects_path
expect
(
page
).
to
have_content
(
'awesome stuff'
)
end
describe
"with a pipeline"
do
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
:success
,
project:
project
,
sha:
project
.
commit
.
sha
)
}
before
do
login_as
(
create
:user
)
pipeline
end
it
'shows that the last pipeline passed'
do
visit
dashboard_projects_path
expect
(
page
).
to
have_xpath
(
"//a[@href='
#{
pipelines_namespace_project_commit_path
(
project
.
namespace
,
project
,
project
.
commit
)
}
']"
)
end
end
it_behaves_like
"an autodiscoverable RSS feed with current_user's private token"
...
...
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