mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-16 22:10:28 +00:00
Updates broken JS tests.
This commit is contained in:
parent
ee253d0de5
commit
ec60b02ea0
2 changed files with 17 additions and 7 deletions
|
|
@ -83,8 +83,7 @@ describe('MediaBlock', () => {
|
|||
|
||||
expect(
|
||||
wrapper
|
||||
.find('Portal')
|
||||
.instance().portal
|
||||
.find('Portal > Portal').prop('containerInfo')
|
||||
).toMatchSnapshot();
|
||||
});
|
||||
|
||||
|
|
@ -110,9 +109,8 @@ describe('MediaBlock', () => {
|
|||
|
||||
expect(
|
||||
wrapper
|
||||
.find('Portal')
|
||||
.instance()
|
||||
.portal.querySelector('.Tooltip').className
|
||||
.find('.Tooltip')
|
||||
.prop('className')
|
||||
).toBe('Tooltip Tooltip--left');
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,15 @@ exports[`Portal #children 1`] = `
|
|||
}
|
||||
onClose={[Function]}
|
||||
>
|
||||
Test!
|
||||
<Portal
|
||||
containerInfo={
|
||||
<div>
|
||||
Test!
|
||||
</div>
|
||||
}
|
||||
>
|
||||
Test!
|
||||
</Portal>
|
||||
</Portal>
|
||||
`;
|
||||
|
||||
|
|
@ -31,5 +39,9 @@ exports[`Portal empty 1`] = `
|
|||
</body>
|
||||
}
|
||||
onClose={[Function]}
|
||||
/>
|
||||
>
|
||||
<Portal
|
||||
containerInfo={<div />}
|
||||
/>
|
||||
</Portal>
|
||||
`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue