@@ -836,6 +836,7 @@ function useGenerateTest(test, projectFilePath) {
836836 } else {
837837 violations.forEach(axeViolation => {
838838 const whereItFailed = axeViolation.nodes.map(node => node.html);
839+ // uncomment the line(s) below to see suggestions on how to fix accessibility issues
839840 // const failureSummary = axeViolation.nodes.map(node => node.failureSummary);
840841
841842 const { description, help, helpUrl } = axeViolation;
@@ -845,7 +846,7 @@ function useGenerateTest(test, projectFilePath) {
845846 '\\nISSUE: ', help,
846847 '\\nMORE INFO: ', helpUrl,
847848 '\\nWHERE IT FAILED: ', whereItFailed,
848- // '\\nhow to fix : ', failureSummary
849+ // '\\nHOW TO FIX : ', failureSummary
849850 );
850851 });
851852 }
@@ -1014,6 +1015,7 @@ function useGenerateTest(test, projectFilePath) {
10141015 const violations = results;
10151016 violations.forEach(axeViolation => {
10161017 const whereItFailed = axeViolation.nodes.map(node => node.html);
1018+ // uncomment the line(s) below to see suggestions on how to fix accessibility issues
10171019 // const failureSummary = axeViolation.nodes.map(node => node.failureSummary);
10181020
10191021 const { description, help, helpUrl } = axeViolation;
@@ -1028,7 +1030,7 @@ function useGenerateTest(test, projectFilePath) {
10281030 helpUrl,
10291031 '\\nWHERE IT FAILED: ',
10301032 whereItFailed
1031- // '\\nhow to fix : ', failureSummary
1033+ // '\\nHOW TO FIX : ', failureSummary
10321034 );
10331035 });
10341036 })
@@ -1039,8 +1041,6 @@ function useGenerateTest(test, projectFilePath) {
10391041 `
10401042 } ;
10411043
1042- //const generatePuppeteerScriptTag = () => {`"node <replaceWithJavascriptTestFileName.js> ${url}"`}
1043-
10441044 switch ( test ) {
10451045 case 'acc' :
10461046 var accTestCase = testState ;
0 commit comments