Add e2e tests for diagrams and embeddings (#1025)

This commit is contained in:
Erik Michelson 2021-02-22 22:27:59 +01:00 committed by GitHub
parent c2664b68f0
commit f9809a4edf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 187 additions and 14 deletions

View file

@ -55,12 +55,14 @@ export const GraphvizFrame: React.FC<GraphvizFrameProps> = ({ code }) => {
})
}, [code, error, showError])
return <Fragment>
<ShowIf condition={ !!error }>
<Alert variant={ 'warning' }>{ error }</Alert>
</ShowIf>
<div className={ 'text-center overflow-x-auto' } ref={ container }/>
</Fragment>
return (
<Fragment>
<ShowIf condition={ !!error }>
<Alert variant={ 'warning' }>{ error }</Alert>
</ShowIf>
<div className={ 'text-center overflow-x-auto' } data-cy={ 'graphviz' } ref={ container }/>
</Fragment>
)
}
export default GraphvizFrame