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
998b460e
Commit
998b460e
authored
Mar 11, 2021
by
Alexander Turinske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up tests
parent
ef35231e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
28 deletions
+18
-28
ee/spec/frontend/security_configuration/dast_scanner_profiles_form/components/dast_scanner_profiles_form_spec.js
...ofiles_form/components/dast_scanner_profiles_form_spec.js
+6
-12
ee/spec/frontend/security_configuration/dast_site_profiles_form/components/dast_site_auth_section_spec.js
...e_profiles_form/components/dast_site_auth_section_spec.js
+6
-8
ee/spec/frontend/security_configuration/dast_site_profiles_form/components/dast_site_profile_form_spec.js
...e_profiles_form/components/dast_site_profile_form_spec.js
+6
-8
No files found.
ee/spec/frontend/security_configuration/dast_scanner_profiles_form/components/dast_scanner_profiles_form_spec.js
View file @
998b460e
...
@@ -285,21 +285,18 @@ describe('DAST Scanner Profile', () => {
...
@@ -285,21 +285,18 @@ describe('DAST Scanner Profile', () => {
});
});
describe
(
'
when profile does not come from a policy
'
,
()
=>
{
describe
(
'
when profile does not come from a policy
'
,
()
=>
{
let
formGroups
;
beforeEach
(()
=>
{
beforeEach
(()
=>
{
createComponent
({
createComponent
({
propsData
:
{
propsData
:
{
profile
:
defaultProfile
,
profile
:
defaultProfile
,
},
},
});
});
formGroups
=
findAllFormGroups
().
wrappers
;
});
});
it
(
'
should enable all form groups
'
,
()
=>
{
it
(
'
should enable all form groups
'
,
()
=>
{
formGroups
.
forEach
((
formGroup
)
=>
{
expect
(
expect
(
formGroup
.
attributes
(
'
disabled
'
)).
toBe
(
undefined
);
findAllFormGroups
().
wrappers
.
every
((
w
)
=>
w
.
attributes
(
'
disabled
'
)
===
undefined
),
}
);
).
toBe
(
true
);
});
});
it
(
'
should show the policy profile alert
'
,
()
=>
{
it
(
'
should show the policy profile alert
'
,
()
=>
{
...
@@ -308,15 +305,12 @@ describe('DAST Scanner Profile', () => {
...
@@ -308,15 +305,12 @@ describe('DAST Scanner Profile', () => {
});
});
describe
(
'
when profile does comes from a policy
'
,
()
=>
{
describe
(
'
when profile does comes from a policy
'
,
()
=>
{
let
formGroups
;
beforeEach
(()
=>
{
beforeEach
(()
=>
{
createComponent
({
createComponent
({
propsData
:
{
propsData
:
{
profile
:
policyScannerProfile
,
profile
:
policyScannerProfile
,
},
},
});
});
formGroups
=
findAllFormGroups
().
wrappers
;
});
});
it
(
'
should show the policy profile alert
'
,
()
=>
{
it
(
'
should show the policy profile alert
'
,
()
=>
{
...
@@ -324,9 +318,9 @@ describe('DAST Scanner Profile', () => {
...
@@ -324,9 +318,9 @@ describe('DAST Scanner Profile', () => {
});
});
it
(
'
should disable all form groups
'
,
()
=>
{
it
(
'
should disable all form groups
'
,
()
=>
{
formGroups
.
forEach
((
formGroup
)
=>
{
expect
(
findAllFormGroups
().
wrappers
.
every
((
w
)
=>
w
.
attributes
(
'
disabled
'
)
===
'
true
'
)).
toBe
(
expect
(
formGroup
.
attributes
(
'
disabled
'
)).
toBe
(
'
true
'
);
true
,
}
);
);
});
});
it
(
'
should disable the save button
'
,
()
=>
{
it
(
'
should disable the save button
'
,
()
=>
{
...
...
ee/spec/frontend/security_configuration/dast_site_profiles_form/components/dast_site_auth_section_spec.js
View file @
998b460e
...
@@ -121,20 +121,18 @@ describe('DastSiteAuthSection', () => {
...
@@ -121,20 +121,18 @@ describe('DastSiteAuthSection', () => {
describe
(
'
when profile does not come from a policy
'
,
()
=>
{
describe
(
'
when profile does not come from a policy
'
,
()
=>
{
it
(
'
should enable all form groups
'
,
()
=>
{
it
(
'
should enable all form groups
'
,
()
=>
{
createComponent
({
mountFn
:
shallowMount
,
fields
:
{
enabled
:
true
}
});
createComponent
({
mountFn
:
shallowMount
,
fields
:
{
enabled
:
true
}
});
const
formGroups
=
findAllFormGroups
().
wrappers
;
expect
(
formGroups
.
forEach
((
formGroup
)
=>
{
findAllFormGroups
().
wrappers
.
every
((
w
)
=>
w
.
attributes
(
'
disabled
'
)
===
undefined
),
expect
(
formGroup
.
attributes
(
'
disabled
'
)).
toBe
(
undefined
);
).
toBe
(
true
);
});
});
});
});
});
describe
(
'
when profile does comes from a policy
'
,
()
=>
{
describe
(
'
when profile does comes from a policy
'
,
()
=>
{
it
(
'
should disable all form groups
'
,
()
=>
{
it
(
'
should disable all form groups
'
,
()
=>
{
createComponent
({
mountFn
:
shallowMount
,
disabled
:
true
,
fields
:
{
enabled
:
true
}
});
createComponent
({
mountFn
:
shallowMount
,
disabled
:
true
,
fields
:
{
enabled
:
true
}
});
const
formGroups
=
findAllFormGroups
().
wrappers
;
expect
(
findAllFormGroups
().
wrappers
.
every
((
w
)
=>
w
.
attributes
(
'
disabled
'
)
===
'
true
'
)).
toBe
(
formGroups
.
forEach
((
formGroup
)
=>
{
true
,
expect
(
formGroup
.
attributes
(
'
disabled
'
)).
toBe
(
'
true
'
);
);
});
});
});
});
});
});
});
...
...
ee/spec/frontend/security_configuration/dast_site_profiles_form/components/dast_site_profile_form_spec.js
View file @
998b460e
...
@@ -346,10 +346,9 @@ describe('DastSiteProfileForm', () => {
...
@@ -346,10 +346,9 @@ describe('DastSiteProfileForm', () => {
});
});
it
(
'
should enable all form groups
'
,
()
=>
{
it
(
'
should enable all form groups
'
,
()
=>
{
const
formGroups
=
findAllFormGroups
();
expect
(
for
(
let
i
=
0
;
i
<
formGroups
.
length
;
i
+=
1
)
{
findAllFormGroups
().
wrappers
.
every
((
w
)
=>
w
.
attributes
(
'
disabled
'
)
===
undefined
),
expect
(
formGroups
.
at
(
i
).
attributes
(
'
disabled
'
)).
toBe
(
undefined
);
).
toBe
(
true
);
}
});
});
it
(
'
should show the policy profile alert
'
,
()
=>
{
it
(
'
should show the policy profile alert
'
,
()
=>
{
...
@@ -371,10 +370,9 @@ describe('DastSiteProfileForm', () => {
...
@@ -371,10 +370,9 @@ describe('DastSiteProfileForm', () => {
});
});
it
(
'
should disable all form groups
'
,
()
=>
{
it
(
'
should disable all form groups
'
,
()
=>
{
const
formGroups
=
findAllFormGroups
();
expect
(
findAllFormGroups
().
wrappers
.
every
((
w
)
=>
w
.
attributes
(
'
disabled
'
)
===
'
true
'
)).
toBe
(
for
(
let
i
=
0
;
i
<
formGroups
.
length
;
i
+=
1
)
{
true
,
expect
(
formGroups
.
at
(
i
).
attributes
(
'
disabled
'
)).
toBe
(
'
true
'
);
);
}
});
});
it
(
'
should disable the save button
'
,
()
=>
{
it
(
'
should disable the save button
'
,
()
=>
{
...
...
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