mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-07 15:07: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;
|
const [start, length] = charIndices;
|
||||||
if (typeof start !== "number") return;
|
if (typeof start !== "number") return;
|
||||||
opName +=
|
opName +=
|
||||||
this.name.slice(pos, start) + "<strong>" +
|
"<span>" + this.name.slice(pos, start) + "</span>" + "<strong>" +
|
||||||
this.name.slice(start, start + length) + "</strong>";
|
this.name.slice(start, start + length) + "</strong>";
|
||||||
pos = start + length;
|
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 {
|
} else {
|
||||||
span.innerText = this.name;
|
span.innerText = this.name;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ function clear(browser) {
|
||||||
.click("#clr-recipe")
|
.click("#clr-recipe")
|
||||||
.click("#clr-io")
|
.click("#clr-io")
|
||||||
.waitForElementNotPresent("#rec-list li.operation")
|
.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
|
/** @function
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue