mirror of
https://github.com/gchq/CyberChef
synced 2024-12-29 14:03:10 +00:00
More test tweaking
This commit is contained in:
parent
ee77e0a1e4
commit
0026d77b7b
2 changed files with 7 additions and 3 deletions
|
@ -46,6 +46,8 @@ class App {
|
||||||
this.appLoaded = false;
|
this.appLoaded = false;
|
||||||
this.workerLoaded = false;
|
this.workerLoaded = false;
|
||||||
this.waitersLoaded = false;
|
this.waitersLoaded = false;
|
||||||
|
|
||||||
|
this.snackbars = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -708,14 +710,14 @@ class App {
|
||||||
log.info("[" + time.toLocaleString() + "] " + str);
|
log.info("[" + time.toLocaleString() + "] " + str);
|
||||||
if (silent) return;
|
if (silent) return;
|
||||||
|
|
||||||
this.currentSnackbar = $.snackbar({
|
this.snackbars.push($.snackbar({
|
||||||
content: str,
|
content: str,
|
||||||
timeout: timeout,
|
timeout: timeout,
|
||||||
htmlAllowed: true,
|
htmlAllowed: true,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.currentSnackbar.remove();
|
this.snackbars.shift().remove();
|
||||||
}
|
}
|
||||||
});
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@ function setChrEnc(browser, io, enc) {
|
||||||
io = `#${io}-text`;
|
io = `#${io}-text`;
|
||||||
browser
|
browser
|
||||||
.useCss()
|
.useCss()
|
||||||
|
.waitForElementNotVisible("#snackbar-container", 6000)
|
||||||
.click(io + " .chr-enc-value")
|
.click(io + " .chr-enc-value")
|
||||||
.waitForElementVisible(io + " .chr-enc-select .cm-status-bar-select-scroll")
|
.waitForElementVisible(io + " .chr-enc-select .cm-status-bar-select-scroll")
|
||||||
.click("link text", enc)
|
.click("link text", enc)
|
||||||
|
@ -83,6 +84,7 @@ function setEOLSeq(browser, io, eol) {
|
||||||
io = `#${io}-text`;
|
io = `#${io}-text`;
|
||||||
browser
|
browser
|
||||||
.useCss()
|
.useCss()
|
||||||
|
.waitForElementNotVisible("#snackbar-container", 6000)
|
||||||
.click(io + " .eol-value")
|
.click(io + " .eol-value")
|
||||||
.waitForElementVisible(io + " .eol-select .cm-status-bar-select-content")
|
.waitForElementVisible(io + " .eol-select .cm-status-bar-select-content")
|
||||||
.click(`${io} .cm-status-bar-select-content a[data-val=${eol}]`)
|
.click(`${io} .cm-status-bar-select-content a[data-val=${eol}]`)
|
||||||
|
|
Loading…
Reference in a new issue