test(workflow): cover dynamic action options (#712)

This commit is contained in:
InfinityPacer
2026-08-24 21:58:34 +08:00
committed by GitHub
parent cf61a42749
commit f6a5d1dfa0
6 changed files with 342 additions and 0 deletions
+28
View File
@@ -366,6 +366,10 @@ export default defineConfig(({ command, mode, isPreview }) => ({
'src/components/dialog/WorkflowActionsDialog.vue',
'src/components/workflow/InvokePluginAction.vue',
'src/components/workflow/WorkflowSidebar.vue',
'src/components/workflow/FetchTorrentsAction.vue',
'src/components/workflow/FilterTorrentsAction.vue',
'src/components/workflow/ScanFileAction.vue',
'src/components/workflow/SendMessageAction.vue',
'src/components/dialog/OTPAuthDialog.vue',
'src/components/dialog/PasskeyDialog.vue',
'src/components/dialog/SiteCookieUpdateDialog.vue',
@@ -608,6 +612,30 @@ export default defineConfig(({ command, mode, isPreview }) => ({
lines: 85,
statements: 85,
},
'src/components/workflow/FetchTorrentsAction.vue': {
branches: 90,
functions: 30,
lines: 90,
statements: 90,
},
'src/components/workflow/FilterTorrentsAction.vue': {
branches: 85,
functions: 10,
lines: 90,
statements: 90,
},
'src/components/workflow/ScanFileAction.vue': {
branches: 80,
functions: 30,
lines: 90,
statements: 90,
},
'src/components/workflow/SendMessageAction.vue': {
branches: 85,
functions: 30,
lines: 90,
statements: 90,
},
'src/@core/utils/workflow.ts': {
branches: 85,
functions: 90,