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
9757f5f0
Commit
9757f5f0
authored
Jan 05, 2021
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken specs
parent
8364f62a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
19 deletions
+5
-19
ee/spec/frontend/security_dashboard/components/first_class_group_security_dashboard_vulnerabilities_spec.js
...st_class_group_security_dashboard_vulnerabilities_spec.js
+2
-9
ee/spec/frontend/security_dashboard/components/first_class_instance_security_dashboard_vulnerabilities_spec.js
...class_instance_security_dashboard_vulnerabilities_spec.js
+2
-9
spec/frontend/static_site_editor/components/submit_changes_error_spec.js
...tatic_site_editor/components/submit_changes_error_spec.js
+1
-1
No files found.
ee/spec/frontend/security_dashboard/components/first_class_group_security_dashboard_vulnerabilities_spec.js
View file @
9757f5f0
import
{
GlAlert
,
GlTable
,
GlEmptyState
,
GlIntersectionObserver
,
GlLoadingIcon
,
GlButton
,
}
from
'
@gitlab/ui
'
;
import
{
GlAlert
,
GlTable
,
GlEmptyState
,
GlIntersectionObserver
,
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
FirstClassGroupVulnerabilities
from
'
ee/security_dashboard/components/first_class_group_security_dashboard_vulnerabilities.vue
'
;
import
VulnerabilityList
from
'
ee/security_dashboard/components/vulnerability_list.vue
'
;
...
...
@@ -81,7 +74,7 @@ describe('First Class Group Dashboard Vulnerabilities Component', () => {
it
(
'
should have an alert that is dismissable
'
,
()
=>
{
const
alert
=
findAlert
();
alert
.
find
(
GlButton
).
vm
.
$emit
(
'
click
'
);
alert
.
find
(
'
button
'
).
trigger
(
'
click
'
);
return
wrapper
.
vm
.
$nextTick
(()
=>
{
expect
(
alert
.
exists
()).
toBe
(
false
);
});
...
...
ee/spec/frontend/security_dashboard/components/first_class_instance_security_dashboard_vulnerabilities_spec.js
View file @
9757f5f0
import
{
GlAlert
,
GlButton
,
GlTable
,
GlEmptyState
,
GlIntersectionObserver
,
GlLoadingIcon
,
}
from
'
@gitlab/ui
'
;
import
{
GlAlert
,
GlTable
,
GlEmptyState
,
GlIntersectionObserver
,
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
Vuex
from
'
vuex
'
;
import
FirstClassInstanceVulnerabilities
from
'
ee/security_dashboard/components/first_class_instance_security_dashboard_vulnerabilities.vue
'
;
...
...
@@ -100,7 +93,7 @@ describe('First Class Instance Dashboard Vulnerabilities Component', () => {
it
(
'
should have an alert that is dismissable
'
,
()
=>
{
const
alert
=
findAlert
();
alert
.
find
(
GlButton
).
vm
.
$emit
(
'
click
'
);
alert
.
find
(
'
button
'
).
trigger
(
'
click
'
);
return
wrapper
.
vm
.
$nextTick
(()
=>
{
expect
(
alert
.
exists
()).
toBe
(
false
);
});
...
...
spec/frontend/static_site_editor/components/submit_changes_error_spec.js
View file @
9757f5f0
...
...
@@ -19,7 +19,7 @@ describe('Submit Changes Error', () => {
});
};
const
findRetryButton
=
()
=>
wrapper
.
find
All
(
GlButton
).
at
(
1
);
const
findRetryButton
=
()
=>
wrapper
.
find
(
GlButton
);
const
findAlert
=
()
=>
wrapper
.
find
(
GlAlert
);
beforeEach
(()
=>
{
...
...
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