addon/snapshot.js
// make sure that they persist in the DOM snapshot.
make sure that they persist in the DOM snapshot.
make sure that they persist in the DOM snapshot .
function copyAttributesToBodyCopy(bodyCopy, testingContainer) {
  let attributesToCopy = testingContainer.prop('attributes');
  percyJQuery.each(attributesToCopy, function() {
    if (this.name === 'class') {
      bodyCopy.attr(this.name, bodyCopy.attr('class') + ' ' + this.value);
    } else {
      bodyCopy.attr(this.name, this.value);
    }
  });
}
function copyAttributesToBodyCopy ( bodyCopy , testingContainer ) { let attributesToCopy = testingContainer . prop ( 'attributes' ) ; percyJQuery . each ( attributesToCopy , function ( ) { if ( this . name === 'class' ) { bodyCopy . attr ( this . name , bodyCopy . attr ( 'class' ) + ' ' + this . value ) ; } else { bodyCopy . attr ( this . name , this . value ) ; } } ) ; }
make sure that they persist in the DOM snapshot.
make sure that they persist in the DOM snapshot .
// Special case for the class attribute - append new classes onto existing body classes