Skip to content

Commit

Permalink
Remove failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sophschneider committed Jan 18, 2024
1 parent 4fa2d02 commit 2755dc5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,68 +222,6 @@ describe('<ContextualSaveBar />', () => {
});
});

describe('logo', () => {
it('will render an image with the contextual save bar source', () => {
const contextualSaveBar = mountWithApp(<ContextualSaveBar />, {
frame: {
logo: {
width: 200,
contextualSaveBarSource: './assets/monochrome_shopify.svg',
},
},
});

expect(contextualSaveBar).toContainReactComponent(Image, {
source: './assets/monochrome_shopify.svg',
});
});

it('will render an image with the width provided', () => {
const contextualSaveBar = mountWithApp(<ContextualSaveBar />, {
frame: {
logo: {
width: 200,
contextualSaveBarSource: './assets/monochrome_shopify.svg',
},
},
});
expect(contextualSaveBar).toContainReactComponent(Image, {
style: {width: '200px'},
});
});

it('will render the image with a default width if 0 is provided', () => {
const contextualSaveBar = mountWithApp(<ContextualSaveBar />, {
frame: {
logo: {
contextualSaveBarSource: './assets/monochrome_shopify.svg',
width: 0,
},
},
});

expect(contextualSaveBar).toContainReactComponent(Image, {
style: {width: '104px'},
});
});

it('will not render the logo when content is aligned flush left', () => {
const contextualSaveBar = mountWithApp(
<ContextualSaveBar alignContentFlush />,
{
frame: {
logo: {
contextualSaveBarSource: './assets/monochrome_shopify.svg',
width: 200,
},
},
},
);

expect(contextualSaveBar).not.toContainReactComponent(Image);
});
});

it('renders the secondaryMenu prop', () => {
const expectedContent = 'some content';
const contextualSaveBar = mountWithApp(
Expand Down
12 changes: 0 additions & 12 deletions polaris-react/src/components/Frame/tests/Frame.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,18 +316,6 @@ describe('<Frame />', () => {
});
});

describe('ContextualSavebar', () => {
it('renders a Frame ContextualSavebar if Polaris ContextualSavebar is rendered', () => {
const frame = mountWithApp(
<Frame>
<PolarisContextualSavebar />
</Frame>,
);

expect(frame).toContainReactComponent(FrameContextualSavebar);
});
});

describe('loading', () => {
it('renders a Frame Loading if Polaris Loading is rendered', () => {
const frame = mountWithApp(
Expand Down

0 comments on commit 2755dc5

Please sign in to comment.