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:
parent
bcb23bc9dc
commit
a7bfd8d878
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue