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
52920b18
Commit
52920b18
authored
Oct 13, 2020
by
nuwe1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated insights_spec file
parent
824772c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
ee/spec/frontend/insights/components/insights_spec.js
ee/spec/frontend/insights/components/insights_spec.js
+15
-15
No files found.
ee/spec/frontend/insights/components/insights_spec.js
View file @
52920b18
...
@@ -6,7 +6,7 @@ import { TEST_HOST } from 'helpers/test_constants';
...
@@ -6,7 +6,7 @@ import { TEST_HOST } from 'helpers/test_constants';
import
Insights
from
'
ee/insights/components/insights.vue
'
;
import
Insights
from
'
ee/insights/components/insights.vue
'
;
import
{
createStore
}
from
'
ee/insights/stores
'
;
import
{
createStore
}
from
'
ee/insights/stores
'
;
import
{
pageInfo
}
from
'
ee_jest/insights/mock_data
'
;
import
{
pageInfo
}
from
'
ee_jest/insights/mock_data
'
;
import
{
GlAlert
,
GlD
eprecatedDropdown
,
GlDeprecated
DropdownItem
,
GlEmptyState
}
from
'
@gitlab/ui
'
;
import
{
GlAlert
,
GlD
ropdown
,
Gl
DropdownItem
,
GlEmptyState
}
from
'
@gitlab/ui
'
;
const
localVue
=
createLocalVue
();
const
localVue
=
createLocalVue
();
localVue
.
use
(
Vuex
);
localVue
.
use
(
Vuex
);
...
@@ -86,18 +86,18 @@ describe('Insights component', () => {
...
@@ -86,18 +86,18 @@ describe('Insights component', () => {
it
(
'
has the correct nav tabs
'
,
async
()
=>
{
it
(
'
has the correct nav tabs
'
,
async
()
=>
{
await
wrapper
.
vm
.
$nextTick
();
await
wrapper
.
vm
.
$nextTick
();
expect
(
wrapper
.
find
(
GlD
eprecatedD
ropdown
).
exists
()).
toBe
(
true
);
expect
(
wrapper
.
find
(
GlDropdown
).
exists
()).
toBe
(
true
);
expect
(
expect
(
wrapper
wrapper
.
find
(
GlD
eprecatedD
ropdown
)
.
find
(
GlDropdown
)
.
find
(
GlD
eprecatedD
ropdownItem
)
.
find
(
GlDropdownItem
)
.
text
(),
.
text
(),
).
toBe
(
title
);
).
toBe
(
title
);
});
});
it
(
'
should not disable the tab selector
'
,
async
()
=>
{
it
(
'
should not disable the tab selector
'
,
async
()
=>
{
await
wrapper
.
vm
.
$nextTick
();
await
wrapper
.
vm
.
$nextTick
();
expect
(
wrapper
.
find
(
GlD
eprecatedD
ropdown
).
attributes
().
disabled
).
toBeUndefined
();
expect
(
wrapper
.
find
(
GlDropdown
).
attributes
().
disabled
).
toBeUndefined
();
});
});
});
});
...
@@ -117,18 +117,18 @@ describe('Insights component', () => {
...
@@ -117,18 +117,18 @@ describe('Insights component', () => {
it
(
'
has the correct nav tabs
'
,
async
()
=>
{
it
(
'
has the correct nav tabs
'
,
async
()
=>
{
await
wrapper
.
vm
.
$nextTick
();
await
wrapper
.
vm
.
$nextTick
();
expect
(
wrapper
.
find
(
GlD
eprecatedD
ropdown
).
exists
()).
toBe
(
true
);
expect
(
wrapper
.
find
(
GlDropdown
).
exists
()).
toBe
(
true
);
expect
(
expect
(
wrapper
wrapper
.
find
(
GlD
eprecatedD
ropdown
)
.
find
(
GlDropdown
)
.
find
(
GlD
eprecatedD
ropdownItem
)
.
find
(
GlDropdownItem
)
.
text
(),
.
text
(),
).
toBe
(
title
);
).
toBe
(
title
);
});
});
it
(
'
disables the tab selector
'
,
async
()
=>
{
it
(
'
disables the tab selector
'
,
async
()
=>
{
await
wrapper
.
vm
.
$nextTick
();
await
wrapper
.
vm
.
$nextTick
();
expect
(
wrapper
.
find
(
GlD
eprecatedD
ropdown
).
attributes
()).
toMatchObject
({
disabled
:
'
true
'
});
expect
(
wrapper
.
find
(
GlDropdown
).
attributes
()).
toMatchObject
({
disabled
:
'
true
'
});
});
});
});
});
...
@@ -152,7 +152,7 @@ describe('Insights component', () => {
...
@@ -152,7 +152,7 @@ describe('Insights component', () => {
it
(
'
enables the tab selector
'
,
async
()
=>
{
it
(
'
enables the tab selector
'
,
async
()
=>
{
await
wrapper
.
vm
.
$nextTick
();
await
wrapper
.
vm
.
$nextTick
();
expect
(
wrapper
.
find
(
GlD
eprecatedD
ropdown
).
attributes
()).
toMatchObject
({
disabled
:
'
true
'
});
expect
(
wrapper
.
find
(
GlDropdown
).
attributes
()).
toMatchObject
({
disabled
:
'
true
'
});
});
});
});
});
...
@@ -175,7 +175,7 @@ describe('Insights component', () => {
...
@@ -175,7 +175,7 @@ describe('Insights component', () => {
it
(
'
disables the tab selector
'
,
async
()
=>
{
it
(
'
disables the tab selector
'
,
async
()
=>
{
await
wrapper
.
vm
.
$nextTick
();
await
wrapper
.
vm
.
$nextTick
();
expect
(
wrapper
.
find
(
GlD
eprecatedD
ropdown
).
attributes
()).
toMatchObject
({
disabled
:
'
true
'
});
expect
(
wrapper
.
find
(
GlDropdown
).
attributes
()).
toMatchObject
({
disabled
:
'
true
'
});
});
});
});
});
...
@@ -199,7 +199,7 @@ describe('Insights component', () => {
...
@@ -199,7 +199,7 @@ describe('Insights component', () => {
it
(
'
enables the tab selector
'
,
async
()
=>
{
it
(
'
enables the tab selector
'
,
async
()
=>
{
await
wrapper
.
vm
.
$nextTick
();
await
wrapper
.
vm
.
$nextTick
();
expect
(
wrapper
.
find
(
GlD
eprecatedD
ropdown
).
attributes
().
disabled
).
toBeUndefined
();
expect
(
wrapper
.
find
(
GlDropdown
).
attributes
().
disabled
).
toBeUndefined
();
});
});
});
});
...
@@ -223,7 +223,7 @@ describe('Insights component', () => {
...
@@ -223,7 +223,7 @@ describe('Insights component', () => {
it
(
'
enables the tab selector
'
,
async
()
=>
{
it
(
'
enables the tab selector
'
,
async
()
=>
{
await
wrapper
.
vm
.
$nextTick
();
await
wrapper
.
vm
.
$nextTick
();
expect
(
wrapper
.
find
(
GlD
eprecatedD
ropdown
).
attributes
().
disabled
).
toBeUndefined
();
expect
(
wrapper
.
find
(
GlDropdown
).
attributes
().
disabled
).
toBeUndefined
();
});
});
});
});
});
});
...
@@ -243,7 +243,7 @@ describe('Insights component', () => {
...
@@ -243,7 +243,7 @@ describe('Insights component', () => {
it
(
'
does not display dropdown
'
,
async
()
=>
{
it
(
'
does not display dropdown
'
,
async
()
=>
{
await
wrapper
.
vm
.
$nextTick
();
await
wrapper
.
vm
.
$nextTick
();
expect
(
wrapper
.
find
(
GlD
eprecatedD
ropdown
).
exists
()).
toBe
(
false
);
expect
(
wrapper
.
find
(
GlDropdown
).
exists
()).
toBe
(
false
);
});
});
});
});
...
@@ -262,7 +262,7 @@ describe('Insights component', () => {
...
@@ -262,7 +262,7 @@ describe('Insights component', () => {
it
(
'
does not display dropdown
'
,
async
()
=>
{
it
(
'
does not display dropdown
'
,
async
()
=>
{
await
wrapper
.
vm
.
$nextTick
();
await
wrapper
.
vm
.
$nextTick
();
expect
(
wrapper
.
find
(
GlD
eprecatedD
ropdown
).
exists
()).
toBe
(
false
);
expect
(
wrapper
.
find
(
GlDropdown
).
exists
()).
toBe
(
false
);
});
});
});
});
...
...
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