Commit c455cd48 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'djadmin-save-scan-redirect' into 'master'

Navigate to Manage scans page on saving a DAST Scan

See merge request gitlab-org/gitlab!59027
parents 9965db91 5c205f78
......@@ -285,7 +285,7 @@ export default {
this.showErrors(ERROR_RUN_SCAN, errors);
this.loading = false;
} else if (!runAfter) {
redirectTo(response.dastProfile.editPath);
redirectTo(this.profilesLibraryPath);
this.clearStorage = true;
} else {
this.clearStorage = true;
......
---
title: Navigate to Manage scans page after saving a DAST Scan
merge_request: 59027
author:
type: fixed
......@@ -318,7 +318,7 @@ describe('OnDemandScansForm', () => {
describe.each`
action | actionFunction | submitButtonLoading | saveButtonLoading | runAfter | redirectPath
${'submit'} | ${submitForm} | ${true} | ${false} | ${true} | ${pipelineUrl}
${'save'} | ${saveScan} | ${false} | ${true} | ${false} | ${editPath}
${'save'} | ${saveScan} | ${false} | ${true} | ${false} | ${profilesLibraryPath}
`(
'on $action',
({ actionFunction, submitButtonLoading, saveButtonLoading, runAfter, redirectPath }) => {
......
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