Skip to content

Commit

Permalink
Fix #210 (attempt #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Oct 8, 2018
1 parent 1b1271e commit 051b9bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/perspective-viewer/test/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ exports.invoke_tooltip = async function invoke_tooltip(svg_selector, page) {
await element.hover();
await page.waitForSelector(".highcharts-label.highcharts-tooltip");
await page.waitFor(() => {
return document.querySelector(".highcharts-label.highcharts-tooltip text tspan").textContent !== "Loading ...";
let elem = document.querySelector(".highcharts-label.highcharts-tooltip");
return window.getComputedStyle(elem).opacity !== "0" && elem.querySelector("text tspan").textContent.indexOf("Loading") === -1 && elem.querySelector("text tspan").textContent.trim() !== "";
});
};

0 comments on commit 051b9bd

Please sign in to comment.