File tree Expand file tree Collapse file tree 1 file changed +0
-52
lines changed
src/tools/testmanagement-utils Expand file tree Collapse file tree 1 file changed +0
-52
lines changed Original file line number Diff line number Diff line change @@ -15,37 +15,6 @@ export interface TestCaseUpdateRequest {
1515 description ?: string ;
1616}
1717
18- export interface TestCaseUpdateResponse {
19- data : {
20- success : boolean ;
21- test_case : {
22- case_type : string ;
23- priority : string ;
24- status : string ;
25- folder_id : number ;
26- issues : Array < {
27- jira_id : string ;
28- issue_type : string ;
29- } > ;
30- tags : string [ ] ;
31- template : string ;
32- description : string ;
33- preconditions : string ;
34- title : string ;
35- identifier : string ;
36- automation_status : string ;
37- owner : string ;
38- steps : Array < {
39- step : string ;
40- result : string ;
41- } > ;
42- custom_fields : Array < {
43- name : string ;
44- value : string ;
45- } > ;
46- } ;
47- } ;
48- }
4918
5019export const UpdateTestCaseSchema = z . object ( {
5120 project_identifier : z
@@ -65,27 +34,6 @@ export const UpdateTestCaseSchema = z.object({
6534 . describe ( "Updated brief description of the test case." ) ,
6635} ) ;
6736
68- export function sanitizeUpdateArgs ( args : any ) {
69- const cleaned = { ...args } ;
70-
71- // Remove null values and undefined
72- Object . keys ( cleaned ) . forEach ( ( key ) => {
73- if ( cleaned [ key ] === null || cleaned [ key ] === undefined ) {
74- delete cleaned [ key ] ;
75- }
76- } ) ;
77-
78- if ( cleaned . issue_tracker ) {
79- if (
80- cleaned . issue_tracker . name === undefined ||
81- cleaned . issue_tracker . host === undefined
82- ) {
83- delete cleaned . issue_tracker ;
84- }
85- }
86-
87- return cleaned ;
88- }
8937
9038/**
9139 * Updates an existing test case in BrowserStack Test Management.
You can’t perform that action at this time.
0 commit comments