Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit ff10e5c

Browse files
committed
Fix test leak
1 parent 1873a4b commit ff10e5c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/test/mochitest/head.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ const selectors = {
953953
fileMatch: ".managed-tree .result",
954954
popup: ".popover",
955955
tooltip: ".tooltip",
956+
previewPopup: ".preview-popup",
956957
outlineItem: i =>
957958
`.outline-list__element:nth-child(${i}) .function-signature`,
958959
outlineItems: ".outline-list__element",
@@ -1114,12 +1115,7 @@ function hoverAtPos(dbg, { line, ch }) {
11141115
}
11151116

11161117
async function assertPreviewTextValue(dbg, { text, expression }) {
1117-
const previewElPromise = await Promise.race([
1118-
waitForElement(dbg, "tooltip"),
1119-
waitForElement(dbg, "popup"),
1120-
]);
1121-
1122-
const previewEl = await previewElPromise;
1118+
const previewEl = await waitForElement(dbg, "previewPopup");;
11231119

11241120
is(previewEl.innerText, text, "Preview text shown to user");
11251121

0 commit comments

Comments
 (0)