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
8a8e6c9a
Commit
8a8e6c9a
authored
Aug 24, 2020
by
Illya Klymov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace isEmpty() check with other expectations
parent
e8c7d7ed
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
10 additions
and
11 deletions
+10
-11
spec/frontend/import_projects/components/import_projects_table_spec.js
.../import_projects/components/import_projects_table_spec.js
+2
-2
spec/frontend/issuable_suggestions/components/app_spec.js
spec/frontend/issuable_suggestions/components/app_spec.js
+1
-1
spec/frontend/logs/components/environment_logs_spec.js
spec/frontend/logs/components/environment_logs_spec.js
+0
-1
spec/frontend/logs/components/log_advanced_filters_spec.js
spec/frontend/logs/components/log_advanced_filters_spec.js
+0
-1
spec/frontend/logs/components/log_control_buttons_spec.js
spec/frontend/logs/components/log_control_buttons_spec.js
+0
-1
spec/frontend/logs/components/log_simple_filters_spec.js
spec/frontend/logs/components/log_simple_filters_spec.js
+0
-1
spec/frontend/monitoring/components/dashboard_spec.js
spec/frontend/monitoring/components/dashboard_spec.js
+5
-1
spec/frontend/pipelines/components/pipelines_filtered_search_spec.js
...nd/pipelines/components/pipelines_filtered_search_spec.js
+0
-1
spec/frontend/vue_shared/components/table_pagination_spec.js
spec/frontend/vue_shared/components/table_pagination_spec.js
+2
-2
No files found.
spec/frontend/import_projects/components/import_projects_table_spec.js
View file @
8a8e6c9a
...
...
@@ -110,8 +110,8 @@ describe('ImportProjectsTable', () => {
wrapper
.
findAll
(
'
th
'
)
.
filter
(
w
=>
w
.
text
()
===
`From
${
providerTitle
}
`
)
.
isEmpty
(),
).
toBe
(
fals
e
);
.
exists
(),
).
toBe
(
tru
e
);
expect
(
wrapper
.
contains
(
ProviderRepoTableRow
)).
toBe
(
true
);
expect
(
wrapper
.
contains
(
ImportedProjectTableRow
)).
toBe
(
true
);
...
...
spec/frontend/issuable_suggestions/components/app_spec.js
View file @
8a8e6c9a
...
...
@@ -41,7 +41,7 @@ describe('Issuable suggestions app component', () => {
wrapper
.
setData
(
data
);
return
wrapper
.
vm
.
$nextTick
(()
=>
{
expect
(
wrapper
.
isEmpty
()).
toBe
(
false
);
expect
(
wrapper
.
findAll
(
'
li
'
).
length
).
toBe
(
data
.
issues
.
length
);
});
});
...
...
spec/frontend/logs/components/environment_logs_spec.js
View file @
8a8e6c9a
...
...
@@ -122,7 +122,6 @@ describe('EnvironmentLogs', () => {
initWrapper
();
expect
(
wrapper
.
isVueInstance
()).
toBe
(
true
);
expect
(
wrapper
.
isEmpty
()).
toBe
(
false
);
expect
(
findEnvironmentsDropdown
().
is
(
GlDeprecatedDropdown
)).
toBe
(
true
);
expect
(
findSimpleFilters
().
exists
()).
toBe
(
true
);
...
...
spec/frontend/logs/components/log_advanced_filters_spec.js
View file @
8a8e6c9a
...
...
@@ -69,7 +69,6 @@ describe('LogAdvancedFilters', () => {
initWrapper
();
expect
(
wrapper
.
isVueInstance
()).
toBe
(
true
);
expect
(
wrapper
.
isEmpty
()).
toBe
(
false
);
expect
(
findFilteredSearch
().
exists
()).
toBe
(
true
);
expect
(
findTimeRangePicker
().
exists
()).
toBe
(
true
);
...
...
spec/frontend/logs/components/log_control_buttons_spec.js
View file @
8a8e6c9a
...
...
@@ -29,7 +29,6 @@ describe('LogControlButtons', () => {
initWrapper
();
expect
(
wrapper
.
isVueInstance
()).
toBe
(
true
);
expect
(
wrapper
.
isEmpty
()).
toBe
(
false
);
expect
(
findScrollToTop
().
is
(
GlButton
)).
toBe
(
true
);
expect
(
findScrollToBottom
().
is
(
GlButton
)).
toBe
(
true
);
...
...
spec/frontend/logs/components/log_simple_filters_spec.js
View file @
8a8e6c9a
...
...
@@ -60,7 +60,6 @@ describe('LogSimpleFilters', () => {
initWrapper
();
expect
(
wrapper
.
isVueInstance
()).
toBe
(
true
);
expect
(
wrapper
.
isEmpty
()).
toBe
(
false
);
expect
(
findPodsDropdown
().
exists
()).
toBe
(
true
);
});
...
...
spec/frontend/monitoring/components/dashboard_spec.js
View file @
8a8e6c9a
...
...
@@ -668,7 +668,11 @@ describe('Dashboard', () => {
});
it
(
'
shows a remove button, which removes a panel
'
,
()
=>
{
expect
(
findFirstDraggableRemoveButton
().
isEmpty
()).
toBe
(
false
);
expect
(
findFirstDraggableRemoveButton
()
.
find
(
'
a
'
)
.
exists
(),
).
toBe
(
true
);
expect
(
findDraggablePanels
().
length
).
toEqual
(
metricsDashboardPanelCount
);
findFirstDraggableRemoveButton
().
trigger
(
'
click
'
);
...
...
spec/frontend/pipelines/components/pipelines_filtered_search_spec.js
View file @
8a8e6c9a
...
...
@@ -48,7 +48,6 @@ describe('Pipelines filtered search', () => {
it
(
'
displays UI elements
'
,
()
=>
{
expect
(
wrapper
.
isVueInstance
()).
toBe
(
true
);
expect
(
wrapper
.
isEmpty
()).
toBe
(
false
);
expect
(
findFilteredSearch
().
exists
()).
toBe
(
true
);
});
...
...
spec/frontend/vue_shared/components/table_pagination_spec.js
View file @
8a8e6c9a
...
...
@@ -50,7 +50,7 @@ describe('Pagination component', () => {
change
:
spy
,
});
expect
(
wrapper
.
isEmpty
()).
toBe
(
fals
e
);
expect
(
wrapper
.
find
(
GlPagination
).
exists
()).
toBe
(
tru
e
);
});
it
(
'
renders if there is a prev page
'
,
()
=>
{
...
...
@@ -66,7 +66,7 @@ describe('Pagination component', () => {
change
:
spy
,
});
expect
(
wrapper
.
isEmpty
()).
toBe
(
fals
e
);
expect
(
wrapper
.
find
(
GlPagination
).
exists
()).
toBe
(
tru
e
);
});
});
...
...
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