@@ -59,7 +59,15 @@ async function waitOnMaybe(buildUtils, options = {}) {
5959
6060const isValidBrowser = ( name ) => name === 'electron' || name === 'chromium'
6161
62- async function runCypressTests ( baseUrl , record , spec , group , tag , browser ) {
62+ async function runCypressTests (
63+ baseUrl ,
64+ record ,
65+ spec ,
66+ group ,
67+ tag ,
68+ browser ,
69+ configFile ,
70+ ) {
6371 if ( ! isValidBrowser ( browser ) ) {
6472 throw new Error ( `Invalid browser name "${ browser } "` )
6573 }
@@ -99,6 +107,7 @@ async function runCypressTests(baseUrl, record, spec, group, tag, browser) {
99107 ciBuildId,
100108 browser : browserPath ,
101109 headless : true ,
110+ configFile,
102111 } )
103112}
104113
@@ -236,6 +245,7 @@ async function postBuild({
236245 tag,
237246 spa,
238247 browser,
248+ configFile,
239249 errorCallback,
240250 summaryCallback,
241251} ) {
@@ -260,6 +270,7 @@ async function postBuild({
260270 group ,
261271 tag ,
262272 browser ,
273+ configFile ,
263274 )
264275
265276 await new Promise ( ( resolve , reject ) => {
@@ -315,13 +326,16 @@ module.exports = {
315326 }
316327 }
317328
329+ const configFile = preBuildInputs . configFile
330+
318331 const results = await runCypressTests (
319332 baseUrl ,
320333 record ,
321334 spec ,
322335 group ,
323336 tag ,
324337 browser ,
338+ configFile ,
325339 )
326340
327341 if ( closeServer ) {
@@ -369,6 +383,7 @@ module.exports = {
369383 }
370384 }
371385 const spa = postBuildInputs . spa
386+ const configFile = postBuildInputs . configFile
372387
373388 const errorCallback = utils . build . failBuild . bind ( utils . build )
374389 const summaryCallback = utils . status . show . bind ( utils . status )
@@ -381,6 +396,7 @@ module.exports = {
381396 tag,
382397 spa,
383398 browser,
399+ configFile,
384400 errorCallback,
385401 summaryCallback,
386402 } )
@@ -448,6 +464,8 @@ module.exports = {
448464 tag,
449465 } )
450466
467+ const configFile = onSuccessInputs . configFile
468+
451469 console . log ( 'testing deployed url %s' , deployPrimeUrl )
452470 const results = await runCypressTests (
453471 deployPrimeUrl ,
@@ -456,6 +474,7 @@ module.exports = {
456474 group ,
457475 tag ,
458476 browser ,
477+ configFile ,
459478 )
460479 processCypressResults ( results , errorCallback , summaryCallback )
461480 } ,
0 commit comments