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
13c2fa7c
Commit
13c2fa7c
authored
Aug 05, 2021
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use shallowMount in dast_site_validation_modal_spec
parent
0f763bf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
ee/spec/frontend/security_configuration/dast_site_validation/components/dast_site_validation_modal_spec.js
..._validation/components/dast_site_validation_modal_spec.js
+2
-9
No files found.
ee/spec/frontend/security_configuration/dast_site_validation/components/dast_site_validation_modal_spec.js
View file @
13c2fa7c
...
...
@@ -111,7 +111,7 @@ describe('DastSiteValidationModal', () => {
describe
(
'
rendering
'
,
()
=>
{
describe
(
'
loading
'
,
()
=>
{
beforeEach
(()
=>
{
create
Full
Component
({
createComponent
({
handlers
:
{
dastSiteTokenCreate
:
pendingHandler
,
},
...
...
@@ -127,7 +127,7 @@ describe('DastSiteValidationModal', () => {
describe
(
'
error
'
,
()
=>
{
beforeEach
(
async
()
=>
{
create
Full
Component
({
createComponent
({
handlers
:
{
dastSiteTokenCreate
:
jest
.
fn
().
mockRejectedValue
(
new
Error
(
'
GraphQL Network Error
'
)),
},
...
...
@@ -161,13 +161,6 @@ describe('DastSiteValidationModal', () => {
expect
(
downloadButton
).
not
.
toBeNull
();
});
it
.
each
(
validationMethods
)(
'
renders a radio input for "%s" validation
'
,
(
validationMethod
)
=>
{
expect
(
findRadioInputForValidationMethod
(
validationMethod
)).
not
.
toBe
(
null
);
},
);
it
(
'
renders an input group with the target URL prepended
'
,
()
=>
{
const
inputGroup
=
withinComponent
().
getByRole
(
'
group
'
,
{
name
:
'
Step 3 - Confirm text file location and validate
'
,
...
...
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