fix CodeQL observation, UI test update

This commit is contained in:
Robin Scholtes 2023-08-16 17:23:28 +12:00
parent 590da18032
commit d07502d2e1
2 changed files with 7 additions and 4 deletions

View file

@ -289,13 +289,16 @@ export class COperationLi extends HTMLElement {
const [start, length] = charIndices;
if (typeof start !== "number") return;
opName +=
this.name.slice(pos, start) + "<strong>" +
"<span>" + this.name.slice(pos, start) + "</span>" + "<strong>" +
this.name.slice(start, start + length) + "</strong>";
pos = start + length;
});
opName += this.name.slice(pos, this.name.length);
opName += "<span>" + this.name.slice(pos, this.name.length) + "</span>";
span.innerHTML = opName;
const parser = new DOMParser();
opName = parser.parseFromString(opName, "text/html");
span.append( ...opName.body.children );
} else {
span.innerText = this.name;
}

View file

@ -17,7 +17,7 @@ function clear(browser) {
.click("#clr-recipe")
.click("#clr-io")
.waitForElementNotPresent("#rec-list li.operation")
.expect.element("#input-text .cm-content").text.that.equals("");
.expect.element("#input-text .cm-content .cm-line").text.that.equals("");
}
/** @function