0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Updated tests for new iframe title

This commit is contained in:
Simon Backx 2022-08-31 14:54:43 +02:00
parent bcb23bc9dc
commit a7bfd8d878

View file

@ -73,7 +73,7 @@ function renderApp({member = null, documentStyles = {}, props = {}} = {}) {
// In tests, we currently don't wait for the styles to have loaded. In the app we check if the styles url is set or not.
const stylesUrl = '';
const {container} = render(<div style={documentStyles}><div id={ROOT_DIV_ID}><App api={api} stylesUrl={stylesUrl} {...props}/></div></div>);
const iframeElement = container.querySelector('iframe[title="comments-box"]');
const iframeElement = container.querySelector('iframe[title="comments-frame"]');
expect(iframeElement).toBeInTheDocument();
const iframeDocument = iframeElement.contentDocument;