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
665c611b
Commit
665c611b
authored
Dec 07, 2020
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check selectors value
parent
68739e70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ee/spec/frontend/on_demand_scans/components/on_demand_scans_form_spec.js
...d/on_demand_scans/components/on_demand_scans_form_spec.js
+5
-5
No files found.
ee/spec/frontend/on_demand_scans/components/on_demand_scans_form_spec.js
View file @
665c611b
...
@@ -318,10 +318,10 @@ describe('OnDemandScansForm', () => {
...
@@ -318,10 +318,10 @@ describe('OnDemandScansForm', () => {
);
);
describe
.
each
`
describe
.
each
`
profileType | query |
field
| profiles
profileType | query |
selector
| profiles
${
'
scanner
'
}
|
${
'
dastScannerProfiles
'
}
|
${
'
selectedScannerProfileId
'
}
|
${
scannerProfiles
}
${
'
scanner
'
}
|
${
'
dastScannerProfiles
'
}
|
${
ScannerProfileSelector
}
|
${
scannerProfiles
}
${
'
site
'
}
|
${
'
dastSiteProfiles
'
}
|
${
'
selectedSiteProfileId
'
}
|
${
siteProfiles
}
${
'
site
'
}
|
${
'
dastSiteProfiles
'
}
|
${
SiteProfileSelector
}
|
${
siteProfiles
}
`
(
'
when there is a single $profileType profile
'
,
({
query
,
field
,
profiles
})
=>
{
`
(
'
when there is a single $profileType profile
'
,
({
query
,
selector
,
profiles
})
=>
{
const
[
profile
]
=
profiles
;
const
[
profile
]
=
profiles
;
beforeEach
(()
=>
{
beforeEach
(()
=>
{
...
@@ -334,7 +334,7 @@ describe('OnDemandScansForm', () => {
...
@@ -334,7 +334,7 @@ describe('OnDemandScansForm', () => {
});
});
it
(
'
automatically selects the only available profile
'
,
()
=>
{
it
(
'
automatically selects the only available profile
'
,
()
=>
{
expect
(
subject
.
vm
[
field
]
).
toBe
(
profile
.
id
);
expect
(
subject
.
find
(
selector
).
attributes
(
'
value
'
)
).
toBe
(
profile
.
id
);
});
});
});
});
});
});
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