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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
7ac9cddf
Commit
7ac9cddf
authored
Dec 31, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
fe98ad83
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
81 additions
and
30 deletions
+81
-30
spec/frontend/clusters/components/knative_domain_editor_spec.js
...rontend/clusters/components/knative_domain_editor_spec.js
+3
-1
spec/frontend/create_cluster/eks_cluster/components/cluster_form_dropdown_spec.js
...ster/eks_cluster/components/cluster_form_dropdown_spec.js
+51
-20
spec/frontend/error_tracking_settings/components/project_dropdown_spec.js
...ror_tracking_settings/components/project_dropdown_spec.js
+4
-0
spec/frontend/issuable_suggestions/components/app_spec.js
spec/frontend/issuable_suggestions/components/app_spec.js
+3
-1
spec/frontend/monitoring/components/charts/time_series_spec.js
...frontend/monitoring/components/charts/time_series_spec.js
+14
-6
spec/frontend/notes/components/diff_discussion_header_spec.js
.../frontend/notes/components/diff_discussion_header_spec.js
+3
-1
spec/frontend/repository/components/tree_content_spec.js
spec/frontend/repository/components/tree_content_spec.js
+3
-1
No files found.
spec/frontend/clusters/components/knative_domain_editor_spec.js
View file @
7ac9cddf
...
...
@@ -117,7 +117,9 @@ describe('KnativeDomainEditor', () => {
it
(
'
displays an error banner indicating the operation failure
'
,
()
=>
{
wrapper
.
setProps
({
knative
:
{
updateFailed
:
true
,
...
knative
}
});
expect
(
wrapper
.
find
(
'
.js-cluster-knative-domain-name-failure-message
'
).
exists
()).
toBe
(
true
);
return
wrapper
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
wrapper
.
find
(
'
.js-cluster-knative-domain-name-failure-message
'
).
exists
()).
toBe
(
true
);
});
});
});
...
...
spec/frontend/create_cluster/eks_cluster/components/cluster_form_dropdown_spec.js
View file @
7ac9cddf
...
...
@@ -20,7 +20,10 @@ describe('ClusterFormDropdown', () => {
describe
(
'
when initial value is provided
'
,
()
=>
{
it
(
'
sets selectedItem to initial value
'
,
()
=>
{
vm
.
setProps
({
items
,
value
:
secondItem
.
value
});
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
toggleText
'
)).
toEqual
(
secondItem
.
name
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
toggleText
'
)).
toEqual
(
secondItem
.
name
);
});
});
});
...
...
@@ -30,16 +33,22 @@ describe('ClusterFormDropdown', () => {
vm
.
setProps
({
placeholder
});
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
toggleText
'
)).
toEqual
(
placeholder
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
toggleText
'
)).
toEqual
(
placeholder
);
});
});
});
describe
(
'
when an item is selected
'
,
()
=>
{
beforeEach
(()
=>
{
vm
.
setProps
({
items
});
vm
.
findAll
(
'
.js-dropdown-item
'
)
.
at
(
1
)
.
trigger
(
'
click
'
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
vm
.
findAll
(
'
.js-dropdown-item
'
)
.
at
(
1
)
.
trigger
(
'
click
'
);
return
vm
.
vm
.
$nextTick
();
});
});
it
(
'
emits input event with selected item
'
,
()
=>
{
...
...
@@ -52,12 +61,15 @@ describe('ClusterFormDropdown', () => {
beforeEach
(()
=>
{
vm
.
setProps
({
items
,
multiple
:
true
,
value
});
vm
.
findAll
(
'
.js-dropdown-item
'
)
.
at
(
0
)
.
trigger
(
'
click
'
);
vm
.
findAll
(
'
.js-dropdown-item
'
)
.
at
(
1
)
.
trigger
(
'
click
'
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
vm
.
findAll
(
'
.js-dropdown-item
'
)
.
at
(
0
)
.
trigger
(
'
click
'
);
vm
.
findAll
(
'
.js-dropdown-item
'
)
.
at
(
1
)
.
trigger
(
'
click
'
);
return
vm
.
vm
.
$nextTick
();
});
});
it
(
'
emits input event with an array of selected items
'
,
()
=>
{
...
...
@@ -68,6 +80,7 @@ describe('ClusterFormDropdown', () => {
describe
(
'
when multiple items can be selected
'
,
()
=>
{
beforeEach
(()
=>
{
vm
.
setProps
({
items
,
multiple
:
true
,
value
:
firstItem
.
value
});
return
vm
.
vm
.
$nextTick
();
});
it
(
'
displays a checked GlIcon next to the item
'
,
()
=>
{
...
...
@@ -85,7 +98,9 @@ describe('ClusterFormDropdown', () => {
vm
.
setProps
({
labelProperty
,
items
:
customLabelItems
,
value
:
currentValue
});
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
toggleText
'
)).
toEqual
(
label
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
toggleText
'
)).
toEqual
(
label
);
});
});
});
...
...
@@ -93,7 +108,9 @@ describe('ClusterFormDropdown', () => {
it
(
'
dropdown button isLoading
'
,
()
=>
{
vm
.
setProps
({
loading
:
true
});
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
isLoading
'
)).
toBe
(
true
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
isLoading
'
)).
toBe
(
true
);
});
});
});
...
...
@@ -103,7 +120,9 @@ describe('ClusterFormDropdown', () => {
vm
.
setProps
({
loading
:
true
,
loadingText
});
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
toggleText
'
)).
toEqual
(
loadingText
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
toggleText
'
)).
toEqual
(
loadingText
);
});
});
});
...
...
@@ -111,7 +130,9 @@ describe('ClusterFormDropdown', () => {
it
(
'
dropdown button isDisabled
'
,
()
=>
{
vm
.
setProps
({
disabled
:
true
});
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
isDisabled
'
)).
toBe
(
true
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
isDisabled
'
)).
toBe
(
true
);
});
});
});
...
...
@@ -121,7 +142,9 @@ describe('ClusterFormDropdown', () => {
vm
.
setProps
({
disabled
:
true
,
disabledText
});
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
toggleText
'
)).
toBe
(
disabledText
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
find
(
DropdownButton
).
props
(
'
toggleText
'
)).
toBe
(
disabledText
);
});
});
});
...
...
@@ -129,7 +152,9 @@ describe('ClusterFormDropdown', () => {
it
(
'
sets border-danger class selector to dropdown toggle
'
,
()
=>
{
vm
.
setProps
({
hasErrors
:
true
});
expect
(
vm
.
find
(
DropdownButton
).
classes
(
'
border-danger
'
)).
toBe
(
true
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
find
(
DropdownButton
).
classes
(
'
border-danger
'
)).
toBe
(
true
);
});
});
});
...
...
@@ -139,7 +164,9 @@ describe('ClusterFormDropdown', () => {
vm
.
setProps
({
hasErrors
:
true
,
errorMessage
});
expect
(
vm
.
find
(
'
.js-eks-dropdown-error-message
'
).
text
()).
toEqual
(
errorMessage
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
find
(
'
.js-eks-dropdown-error-message
'
).
text
()).
toEqual
(
errorMessage
);
});
});
});
...
...
@@ -149,7 +176,9 @@ describe('ClusterFormDropdown', () => {
vm
.
setProps
({
items
:
[],
emptyText
});
expect
(
vm
.
find
(
'
.js-empty-text
'
).
text
()).
toEqual
(
emptyText
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
find
(
'
.js-empty-text
'
).
text
()).
toEqual
(
emptyText
);
});
});
});
...
...
@@ -158,7 +187,9 @@ describe('ClusterFormDropdown', () => {
vm
.
setProps
({
searchFieldPlaceholder
});
expect
(
vm
.
find
(
DropdownSearchInput
).
props
(
'
placeholderText
'
)).
toEqual
(
searchFieldPlaceholder
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
find
(
DropdownSearchInput
).
props
(
'
placeholderText
'
)).
toEqual
(
searchFieldPlaceholder
);
});
});
it
(
'
it filters results by search query
'
,
()
=>
{
...
...
spec/frontend/error_tracking_settings/components/project_dropdown_spec.js
View file @
7ac9cddf
...
...
@@ -66,6 +66,8 @@ describe('error tracking settings project dropdown', () => {
describe
(
'
populated project list
'
,
()
=>
{
beforeEach
(()
=>
{
wrapper
.
setProps
({
projects
:
_
.
clone
(
projectList
),
hasProjects
:
true
});
return
wrapper
.
vm
.
$nextTick
();
});
it
(
'
renders the dropdown
'
,
()
=>
{
...
...
@@ -84,6 +86,7 @@ describe('error tracking settings project dropdown', () => {
beforeEach
(()
=>
{
wrapper
.
setProps
({
projects
:
_
.
clone
(
projectList
),
selectedProject
,
hasProjects
:
true
});
return
wrapper
.
vm
.
$nextTick
();
});
it
(
'
does not show helper text
'
,
()
=>
{
...
...
@@ -99,6 +102,7 @@ describe('error tracking settings project dropdown', () => {
selectedProject
:
staleProject
,
isProjectInvalid
:
true
,
});
return
wrapper
.
vm
.
$nextTick
();
});
it
(
'
displays a error
'
,
()
=>
{
...
...
spec/frontend/issuable_suggestions/components/app_spec.js
View file @
7ac9cddf
...
...
@@ -27,7 +27,9 @@ describe('Issuable suggestions app component', () => {
it
(
'
does not render with empty search
'
,
()
=>
{
wrapper
.
setProps
({
search
:
''
});
expect
(
wrapper
.
isVisible
()).
toBe
(
false
);
return
wrapper
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
wrapper
.
isVisible
()).
toBe
(
false
);
});
});
describe
(
'
with data
'
,
()
=>
{
...
...
spec/frontend/monitoring/components/charts/time_series_spec.js
View file @
7ac9cddf
...
...
@@ -83,13 +83,17 @@ describe('Time series component', () => {
it
(
'
allows user to override max value label text using prop
'
,
()
=>
{
timeSeriesChart
.
setProps
({
legendMaxText
:
'
legendMaxText
'
});
expect
(
timeSeriesChart
.
props
().
legendMaxText
).
toBe
(
'
legendMaxText
'
);
return
timeSeriesChart
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
timeSeriesChart
.
props
().
legendMaxText
).
toBe
(
'
legendMaxText
'
);
});
});
it
(
'
allows user to override average value label text using prop
'
,
()
=>
{
timeSeriesChart
.
setProps
({
legendAverageText
:
'
averageText
'
});
expect
(
timeSeriesChart
.
props
().
legendAverageText
).
toBe
(
'
averageText
'
);
return
timeSeriesChart
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
timeSeriesChart
.
props
().
legendAverageText
).
toBe
(
'
averageText
'
);
});
});
describe
(
'
methods
'
,
()
=>
{
...
...
@@ -267,7 +271,9 @@ describe('Time series component', () => {
option
:
mockOption
,
});
expect
(
timeSeriesChart
.
vm
.
chartOptions
).
toEqual
(
expect
.
objectContaining
(
mockOption
));
return
timeSeriesChart
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
timeSeriesChart
.
vm
.
chartOptions
).
toEqual
(
expect
.
objectContaining
(
mockOption
));
});
});
it
(
'
additional series
'
,
()
=>
{
...
...
@@ -281,10 +287,12 @@ describe('Time series component', () => {
},
});
const
optionSeries
=
timeSeriesChart
.
vm
.
chartOptions
.
series
;
return
timeSeriesChart
.
vm
.
$nextTick
().
then
(()
=>
{
const
optionSeries
=
timeSeriesChart
.
vm
.
chartOptions
.
series
;
expect
(
optionSeries
.
length
).
toEqual
(
2
);
expect
(
optionSeries
[
0
].
name
).
toEqual
(
mockSeriesName
);
expect
(
optionSeries
.
length
).
toEqual
(
2
);
expect
(
optionSeries
[
0
].
name
).
toEqual
(
mockSeriesName
);
});
});
});
...
...
spec/frontend/notes/components/diff_discussion_header_spec.js
View file @
7ac9cddf
...
...
@@ -38,7 +38,9 @@ describe('diff_discussion_header component', () => {
wrapper
.
setProps
({
discussion
});
expect
(
wrapper
.
find
(
'
.user-avatar-link
'
).
exists
()).
toBe
(
true
);
return
wrapper
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
wrapper
.
find
(
'
.user-avatar-link
'
).
exists
()).
toBe
(
true
);
});
});
describe
(
'
action text
'
,
()
=>
{
...
...
spec/frontend/repository/components/tree_content_spec.js
View file @
7ac9cddf
...
...
@@ -30,7 +30,9 @@ describe('Repository table component', () => {
vm
.
setData
({
entries
:
{
blobs
:
[{
name
:
'
README.md
'
}]
}
});
expect
(
vm
.
find
(
FilePreview
).
exists
()).
toBe
(
true
);
return
vm
.
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
find
(
FilePreview
).
exists
()).
toBe
(
true
);
});
});
describe
(
'
normalizeData
'
,
()
=>
{
...
...
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