Skip to content

Commit

Permalink
fix(cypress): avoid referencing detached dom nodes (#13825)
Browse files Browse the repository at this point in the history
  • Loading branch information
suddjian authored Mar 26, 2021
1 parent a45a5e1 commit db1d598
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ export function waitForChartLoad(chart: ChartSpec) {
return (
cy
// this id only becomes visible when the chart is loaded
.wrap(gridComponent)
.find(`#chart-id-${chartId}`, { timeout: 30000 })
.get(`[data-test="chart-grid-component"] #chart-id-${chartId}`, {
timeout: 30000,
})
.should('be.visible')
// return the chart grid component
.then(() => gridComponent)
Expand Down

0 comments on commit db1d598

Please sign in to comment.