message: Improve etalons helper for angular testings, add setTimeout to wait until all attributes are loaded
diff: @@ -91,16 +91,17 @@ export function testQuestionMarkup(assert, test, platform) {
  platform.survey = platform.surveyFactory(test.json);
  platform.survey.textUpdateMode = "onTyping";
  platform.survey[test.event || "onAfterRenderQuestion"].add(function (survey, options) {
  - let str = crearExtraElements(options.htmlElement.innerHTML);
  - const htmlElement = document.createElement("div");
  - htmlElement.innerHTML = str;
  + setTimeout(()=>{
  + const htmlElement = options.htmlElement;
  var all = htmlElement.getElementsByTagName("*");
  for (var i = 0, max = all.length; i < max; i++) {
  clearAttributes(all[i]);
  clearClasses(all[i]);
  }
  sortAttributes(all);
  - str = htmlElement.children[0].innerHTML;
  + const newEl = document.createElement("div");
  + newEl.innerHTML = crearExtraElements(htmlElement.innerHTML);
  + let str = newEl.children[0].innerHTML;
  var re = /(<!--[\s\S]*?-->)/g;
  var newstr = str.replace(re, "");
  @@ -175,8 +176,8 @@ export function testQuestionMarkup(assert, test, platform) {
  download.innerText = "Download snapshot";
  tableCell3.appendChild(download);
  }
  -
  done();
  + }, 10);
  });
  if (test.initSurvey)
  test.initSurvey(platform.survey);
  