fix(cypress): avoid referencing detached dom nodes (#13825)
This commit is contained in:
parent
a45a5e1060
commit
db1d598f50
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue