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
Tatuya Kamada
gitlab-ce
Commits
6f1d8201
Commit
6f1d8201
authored
Feb 13, 2017
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace static fixture for project_title_spec.js (!9175)
parent
8a1441fb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
31 deletions
+12
-31
changelogs/unreleased/dynamic-project-title-fixture.yml
changelogs/unreleased/dynamic-project-title-fixture.yml
+4
-0
spec/javascripts/fixtures/project_title.html.haml
spec/javascripts/fixtures/project_title.html.haml
+0
-20
spec/javascripts/project_title_spec.js
spec/javascripts/project_title_spec.js
+8
-11
No files found.
changelogs/unreleased/dynamic-project-title-fixture.yml
0 → 100644
View file @
6f1d8201
---
title
:
Replace static fixture for project_title_spec.js
merge_request
:
9175
author
:
winniehell
spec/javascripts/fixtures/project_title.html.haml
deleted
100644 → 0
View file @
8a1441fb
.header-content
%h1
.title
%a
GitLab Org
%a
.project-item-select-holder
{
href:
"/gitlab-org/gitlab-test"
}
GitLab Test
%i
.fa.chevron-down.dropdown-toggle-caret.js-projects-dropdown-toggle
{
"data-toggle"
=>
"dropdown"
,
"data-target"
=>
".header-content"
,
"data-order-by"
=>
"last_activity_at"
}
.js-dropdown-menu-projects
.dropdown-menu.dropdown-select.dropdown-menu-projects
.dropdown-title
%span
Go to a project
%button
.dropdown-title-button.dropdown-menu-close
{
"aria-label"
=>
"Close"
,
type:
"button"
}
%i
.fa.fa-times.dropdown-menu-close-icon
.dropdown-input
%input
.dropdown-input-field
{
id:
""
,
placeholder:
"Search your projects"
,
type:
"search"
,
value:
""
}
%i
.fa.fa-search.dropdown-input-search
%i
.fa.fa-times.dropdown-input-clear.js-dropdown-input-clear
{
role:
"button"
}
.dropdown-content
.dropdown-loading
%i
.fa.fa-spinner.fa-spin
spec/javascripts/project_title_spec.js
View file @
6f1d8201
...
...
@@ -10,11 +10,11 @@ require('~/project');
(
function
()
{
describe
(
'
Project Title
'
,
function
()
{
preloadFixtures
(
'
static/project_titl
e.html.raw
'
);
preloadFixtures
(
'
issues/open-issu
e.html.raw
'
);
loadJSONFixtures
(
'
projects.json
'
);
beforeEach
(
function
()
{
loadFixtures
(
'
static/project_titl
e.html.raw
'
);
loadFixtures
(
'
issues/open-issu
e.html.raw
'
);
window
.
gon
=
{};
window
.
gon
.
api_version
=
'
v3
'
;
...
...
@@ -38,15 +38,12 @@ require('~/project');
return
spyOn
(
jQuery
,
'
ajax
'
).
and
.
callFake
(
fakeAjaxResponse
.
bind
(
_this
));
};
})(
this
));
it
(
'
to
show on toggle click
'
,
(
function
(
_this
)
{
return
function
()
{
it
(
'
to
ggles dropdown
'
,
function
(
)
{
var
menu
=
$
(
'
.js-dropdown-menu-projects
'
);
$
(
'
.js-projects-dropdown-toggle
'
).
click
();
return
expect
(
$
(
'
.header-content
'
).
hasClass
(
'
open
'
)).
toBe
(
true
);
};
})(
this
));
return
it
(
'
hide dropdown
'
,
function
()
{
$
(
"
.dropdown-menu-close-icon
"
).
click
();
return
expect
(
$
(
'
.header-content
'
).
hasClass
(
'
open
'
)).
toBe
(
false
);
expect
(
menu
).
toHaveClass
(
'
open
'
);
menu
.
find
(
'
.dropdown-menu-close-icon
'
).
click
();
expect
(
menu
).
not
.
toHaveClass
(
'
open
'
);
});
});
...
...
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