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
2260e639
Commit
2260e639
authored
Jan 19, 2022
by
Dave Pisek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reviewer feedback: specs improvements
parent
1aad3915
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
ee/spec/frontend/security_dashboard/components/shared/security_training_promo_spec.js
...shboard/components/shared/security_training_promo_spec.js
+6
-4
No files found.
ee/spec/frontend/security_dashboard/components/shared/security_training_promo_spec.js
View file @
2260e639
...
...
@@ -5,7 +5,7 @@ import SecurityTrainingPromo from 'ee/security_dashboard/components/shared/secur
const
SECURITY_CONFIGURATION_PATH
=
'
foo/bar
'
;
const
VULNERABILITY_MANAGEMENT_TAB_NAME
=
'
vulnerability-management
'
;
describe
(
'
ee/security_dashboard/components/shared/security_training_promo.vue
'
,
()
=>
{
describe
(
'
Security training promo component
'
,
()
=>
{
let
wrapper
;
const
createWrapper
=
()
=>
...
...
@@ -27,12 +27,14 @@ describe('ee/security_dashboard/components/shared/security_training_promo.vue',
describe
(
'
banner
'
,
()
=>
{
it
(
'
should be an introduction that announces the security training feature
'
,
()
=>
{
const
{
title
,
buttonText
,
content
}
=
SecurityTrainingPromo
.
i18n
;
expect
(
findBanner
().
props
()).
toMatchObject
({
variant
:
'
introduction
'
,
title
:
SecurityTrainingPromo
.
i18n
.
title
,
buttonText
:
SecurityTrainingPromo
.
i18n
.
buttonText
,
title
,
buttonText
,
});
expect
(
findBanner
().
text
()).
toBe
(
SecurityTrainingPromo
.
i18n
.
content
);
expect
(
findBanner
().
text
()).
toBe
(
content
);
});
it
(
`should link to the security configuration's vulnerability management tab`
,
()
=>
{
...
...
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