Skip to content

Commit 0026d77

Browse files
committed
More test tweaking
1 parent ee77e0a commit 0026d77

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/web/App.mjs

+5-3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class App {
4646
this.appLoaded = false;
4747
this.workerLoaded = false;
4848
this.waitersLoaded = false;
49+
50+
this.snackbars = [];
4951
}
5052

5153

@@ -708,14 +710,14 @@ class App {
708710
log.info("[" + time.toLocaleString() + "] " + str);
709711
if (silent) return;
710712

711-
this.currentSnackbar = $.snackbar({
713+
this.snackbars.push($.snackbar({
712714
content: str,
713715
timeout: timeout,
714716
htmlAllowed: true,
715717
onClose: () => {
716-
this.currentSnackbar.remove();
718+
this.snackbars.shift().remove();
717719
}
718-
});
720+
}));
719721
}
720722

721723

tests/browser/browserUtils.js

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function setChrEnc(browser, io, enc) {
6565
io = `#${io}-text`;
6666
browser
6767
.useCss()
68+
.waitForElementNotVisible("#snackbar-container", 6000)
6869
.click(io + " .chr-enc-value")
6970
.waitForElementVisible(io + " .chr-enc-select .cm-status-bar-select-scroll")
7071
.click("link text", enc)
@@ -83,6 +84,7 @@ function setEOLSeq(browser, io, eol) {
8384
io = `#${io}-text`;
8485
browser
8586
.useCss()
87+
.waitForElementNotVisible("#snackbar-container", 6000)
8688
.click(io + " .eol-value")
8789
.waitForElementVisible(io + " .eol-select .cm-status-bar-select-content")
8890
.click(`${io} .cm-status-bar-select-content a[data-val=${eol}]`)

0 commit comments

Comments
 (0)