@@ -102,6 +102,7 @@ const axiosErrorEmptyResponse: AxiosError = {
102102const config : Config = {
103103 apiUrl : "http://localhost:4200" ,
104104 branchName : "develop" ,
105+ baselineBranchName : "next-release" ,
105106 project : "Default project" ,
106107 apiKey : "CPKVK4JNK24NVNPNGVFQ853HXXEG" ,
107108 enableSoftAssert : false ,
@@ -176,6 +177,7 @@ describe("VisualRegressionTracker", () => {
176177 const fileConfig : Config = {
177178 apiUrl : "apiUrlFile" ,
178179 branchName : "branchNameFile" ,
180+ baselineBranchName : "baselineBranchNameFile" ,
179181 project : "projectFile" ,
180182 apiKey : "apiKeyFile" ,
181183 enableSoftAssert : false ,
@@ -184,6 +186,7 @@ describe("VisualRegressionTracker", () => {
184186 const envConfig : Config = {
185187 apiUrl : "apiUrlEnv" ,
186188 branchName : "branchNameEnv" ,
189+ baselineBranchName : "baselineBranchNameEnv" ,
187190 project : "projectEnv" ,
188191 apiKey : "apiKeyEnv" ,
189192 enableSoftAssert : false ,
@@ -282,6 +285,7 @@ describe("VisualRegressionTracker", () => {
282285 buildId,
283286 projectId,
284287 branchName : config . branchName ,
288+ baselineBranchName : config . baselineBranchName ,
285289 ...testRunMultipart ,
286290 } ) ;
287291 expect ( vrt [ "submitTestRunMultipart" ] ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -310,6 +314,7 @@ describe("VisualRegressionTracker", () => {
310314 buildId,
311315 projectId,
312316 branchName : config . branchName ,
317+ baselineBranchName : config . baselineBranchName ,
313318 ...testRunMultipart ,
314319 } ) ;
315320 expect ( vrt [ "submitTestRunMultipart" ] ) . toHaveBeenCalledTimes ( 4 ) ;
@@ -333,6 +338,7 @@ describe("VisualRegressionTracker", () => {
333338 buildId,
334339 projectId,
335340 branchName : config . branchName ,
341+ baselineBranchName : config . baselineBranchName ,
336342 ...testRunBuffer ,
337343 } ) ;
338344 expect ( vrt [ "submitTestRunMultipart" ] ) . toHaveBeenCalledWith ( data ) ;
@@ -359,6 +365,7 @@ describe("VisualRegressionTracker", () => {
359365 `${ config . apiUrl } /builds` ,
360366 {
361367 branchName : config . branchName ,
368+ baselineBranchName : config . baselineBranchName ,
362369 project : config . project ,
363370 ciBuildId : config . ciBuildId ,
364371 } ,
@@ -460,6 +467,7 @@ describe("VisualRegressionTracker", () => {
460467 buildId : buildId ,
461468 projectId : projectId ,
462469 branchName : config . branchName ,
470+ baselineBranchName : config . baselineBranchName ,
463471 name : testRunBase64 . name ,
464472 imageBase64 : testRunBase64 . imageBase64 ,
465473 os : testRunBase64 . os ,
0 commit comments