-
Notifications
You must be signed in to change notification settings - Fork 2
chore: AXE-2572 Axe-core Upgrade Phase 2 #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
chore: AXE-2572 Axe-core Upgrade Phase 2 #178
Conversation
Making heading-order & heading-order-bp stable
…y-engine-axe-core into Upgrade-to-4.11
…-engine-axe-core into Upgrade-to-4.11
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
1 similar comment
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
…e-core into AXE-2572-phase-2-analysis-and-segregation-of-enhancements
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
| function getSource(element) { | ||
| if (!element?.outerHTML) { | ||
| if (!element) { | ||
| return ''; | ||
| } | ||
| var source = element.outerHTML; | ||
| if (!source && typeof window.XMLSerializer === 'function') { | ||
| source = new window.XMLSerializer().serializeToString(element); | ||
| } | ||
| let htmlString = truncate(source || ''); | ||
| // Remove unwanted attributes | ||
| const regex = /\s*data-percy-[^=]+="[^"]*"/g; | ||
| htmlString = htmlString.replace(regex, ''); | ||
| return htmlString; | ||
|
|
||
| return truncateElement(element); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverting a11y-engine changes here - pls check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disable or remove this workflow - not applicable for us
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebase PR towards release branch to test out this workflow post merge
| Rule.prototype._logGatherPerformance = function _logGatherPerformance() { | ||
| // log('gather (', nodes.length, '):', performanceTimer.timeElapsed() + 'ms'); | ||
| Rule.prototype._logGatherPerformance = function _logGatherPerformance(nodes) { | ||
| log( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this log show up in browser console?
| let index = 0; | ||
| if (parent.nodeName === 'BODY') { | ||
| let count = 0; | ||
| // Single pass over siblings: count valid children & locate node position. | ||
| for ( | ||
| let sib = parent.firstElementChild; | ||
| sib; | ||
| sib = sib.nextElementSibling | ||
| ) { | ||
| if (sib.hasAttribute('data-percy-injected')) { | ||
| continue; | ||
| } | ||
| count++; | ||
| if (sib === node) { | ||
| index = count; | ||
| } | ||
| } | ||
| nthChild = count > 1 ? `:nth-child(${index})` : ''; | ||
| } else { | ||
| index = Array.prototype.indexOf.call(parent.children, node) + 1; | ||
| nthChild = `:nth-child(${index})`; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a11y-engine changes are getting reverted
|
|
||
| // this.logMeasures('axe'); | ||
| this.measure('axe', 'mark_axe_start', 'mark_axe_end', true); | ||
| this.logMeasures('axe'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getting reverted - pls verify
| ); | ||
| // log audit/rule measures | ||
| // this.logMeasures(); | ||
| this.logMeasures(); // was commented out previously |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
| if (window.performance && window.performance.measure !== undefined) { | ||
| if (Object.keys(details).length > 0) { | ||
| const measureOpts = { | ||
| detail: details, | ||
| start: startMark, | ||
| end: endMark | ||
| }; | ||
| window.performance.measure(measureName, measureOpts); | ||
| } else { | ||
| window.performance.measure(measureName, startMark, endMark); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a11y-engine changes getting reverted
| * Starts from the most recent start()/auditStart() call. | ||
| * @param {String|undefined} measureName If provided, will only log up to the first matching measure. | ||
| */ | ||
| logMeasures(measureName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this function should be commented everywhere it is getting called
<< Describe the changes >>
Closes: