Commit 80b5897c authored by Dheeraj Joshi's avatar Dheeraj Joshi

Add defaults for DAST Scanner Profile timeout fields

This sets default values for spider timeout and
target timeout input fields
parent d94af83f
......@@ -60,8 +60,8 @@ export default {
data() {
const {
profileName = '',
spiderTimeout = '',
targetTimeout = '',
spiderTimeout = 1,
targetTimeout = 60,
scanType = SCAN_TYPE.PASSIVE,
useAjaxSpider = false,
showDebugMessages = false,
......
---
title: Add defaults for DAST Scanner Profile timeout fields
merge_request: 59999
author:
type: changed
......@@ -167,6 +167,8 @@ describe('DAST Scanner Profile', () => {
it('populates the fields with the data passed in via the profile prop or default values', () => {
expect(findProfileNameInput().element.value).toBe(profile?.profileName ?? '');
expect(findScanType().vm.$attrs.checked).toBe(profile?.scanType ?? SCAN_TYPE.PASSIVE);
expect(findSpiderTimeoutInput().props('value')).toBe(profile?.spiderTimeout ?? 1);
expect(findTargetTimeoutInput().props('value')).toBe(profile?.targetTimeout ?? 60);
});
describe('submission', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment