@@ -184,7 +184,7 @@ for (const testName in results) {
184184 switch ( selectorType ) {
185185 case 'xpath' : {
186186 suggestedRepairs . push (
187- `Fixing for " ${ code . method } " at line ${ code . line } : " By.xpath('${ res . fixedXpath } ')" `
187+ `Fixing for \` ${ code . method } \` at line ${ code . line } : \` By.xpath('${ res . fixedXpath } ')\` `
188188 )
189189 break
190190 }
@@ -221,7 +221,7 @@ for (const testName in results) {
221221 selectorAttributes [ key ] = value
222222 } else {
223223 console . warn (
224- `Unsupported selector format: " ${ selector } " in " ${ code . method } " at line ${ code . line } `
224+ `Unsupported selector format: \` ${ selector } \` in \` ${ code . method } \` at line ${ code . line } `
225225 )
226226 continue
227227 }
@@ -269,20 +269,22 @@ for (const testName in results) {
269269 }
270270 }
271271
272- let suggestedRepair = `- Fixing for " ${ code . method } " at line ${ code . line } \n`
272+ let suggestedRepair = `- Fixing for \` ${ code . method } \` at line ${ code . line } \n`
273273 suggestedRepair += ` 1. ${
274274 newSelector [ 0 ] . length > 0
275- ? `By.css('${ newSelector [ 0 ] . join ( ' ' ) } ')`
275+ ? `\` By.css('${ newSelector [ 0 ] . join ( ' ' ) } ')\` `
276276 : 'No valid selector'
277277 } \n`
278278 suggestedRepair += ` 2. ${
279279 newSelector [ 1 ] . length > 0
280- ? `By.css('${ newSelector [ 1 ] . join ( ' ' ) } ')`
280+ ? `\` By.css('${ newSelector [ 1 ] . join ( ' ' ) } ')\` `
281281 : 'No valid selector'
282282 } \n`
283- suggestedRepair += ` 3. By.xpath('${
283+ suggestedRepair += ` 3. \` By.xpath('${
284284 res . fixedXpath
285- } '), ${ newSelector [ 2 ] . map ( ( sel ) => `By.css('${ sel } ')` ) . join ( ', ' ) } `
285+ } ')\`, ${ newSelector [ 2 ]
286+ . map ( ( sel ) => `\`By.css('${ sel } ')\`` )
287+ . join ( ', ' ) } `
286288
287289 suggestedRepairs . push ( suggestedRepair )
288290 break
@@ -311,9 +313,11 @@ for (const testName in results) {
311313 selectors . push ( getAttributeSelector ( attrName , attrValue ) )
312314 }
313315 suggestedRepairs . push (
314- `- Fixing for "${ code . method } " at line ${ code . line } \n - By.xpath('${
315- res . fixedXpath
316- } '), ${ selectors . map ( ( sel ) => `By.css('${ sel } ')` ) . join ( ', ' ) } `
316+ `- Fixing for \`${ code . method } \` at line ${
317+ code . line
318+ } \n - \`By.xpath('${ res . fixedXpath } ')\`, ${ selectors
319+ . map ( ( sel ) => `\`By.css('${ sel } ')\`` )
320+ . join ( ', ' ) } `
317321 )
318322 break
319323 }
0 commit comments