We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b98f8e5 commit c59a01cCopy full SHA for c59a01c
polaris-react/src/components/Modal/tests/Modal.test.tsx
@@ -313,9 +313,16 @@ describe('<Modal>', () => {
313
);
314
315
expect(modal.find(Header)).toContainReactComponent('div', {
316
- className: 'titleHidden',
+ style: expect.objectContaining({
317
+ '--pc-box-inset-inline-end': 'var(--p-space-0)',
318
+ position: 'absolute',
319
+ zIndex: '1',
320
+ }) as React.CSSProperties,
321
+ });
322
+ expect(modal.find(Header)).not.toContainReactComponent(Text, {
323
+ as: 'h2',
324
+ variant: 'headingLg',
325
});
- expect(modal.find(Header)).not.toContainReactComponent(Box);
326
327
328
0 commit comments