mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-06 22:47:11 -04:00
fix CodeQL observation, UI test update
This commit is contained in:
parent
590da18032
commit
d07502d2e1
2 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue