Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Nov 6, 2023
1 parent 2ff1a36 commit a811214
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/plugins/chatview/tests/styling.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,17 @@ describe("An incoming chat Message", function () {
console.warn(msg_el.innerHTML.replace(/<!-.*?->/g, ''));
console.warn("---------------------------------------");

let x = false;
setTimeout(() => {
x = true;
}, 1000);
await u.waitUntil(x);

console.warn("---------------------------------------");
console.warn("msg_el.innerHTML.replace(/<!-.*?->/g, '')");
console.warn(msg_el.innerHTML.replace(/<!-.*?->/g, ''));
console.warn("---------------------------------------");

await u.waitUntil(() => msg_el.innerHTML.replace(/<!-.*?->/g, '') ===
'Go to ~<a target="_blank" rel="noopener" href="https://conversejs.org~now/">https://conversejs.org~now</a> '+
'<span class="styling-directive">_</span><i>please</i><span class="styling-directive">_</span>', 1000);
Expand Down

0 comments on commit a811214

Please sign in to comment.