import React from 'react' ; import { Story , createContext } from './Clusters.story' ; import { render , waitFor } from 'design/utils/testing' ; test ( 'render clusters' , async ( ) => { const ctx = createContext ( ) ; const { container } = render ( < Story value = { ctx } / > ) ; await waitFor ( ( ) => document . querySelector ( 'table' ) ) ; expect ( container . firstChild ) . toMatchSnapshot ( ) ; } ) ;