diff --git a/packages/react/src/components/Tile/Tile-test.js b/packages/react/src/components/Tile/Tile-test.js index a70630162b11..2539f952b202 100644 --- a/packages/react/src/components/Tile/Tile-test.js +++ b/packages/react/src/components/Tile/Tile-test.js @@ -15,6 +15,7 @@ import { TileBelowTheFoldContent, } from '../Tile'; import { shallow, mount } from 'enzyme'; +import { render } from '@carbon/test-utils/react'; const prefix = 'bx'; @@ -229,8 +230,15 @@ describe('Tile', () => { expect(wrapper.find('div').at(0).props().disabled).toEqual(true); }); - it('should have no Accessibility Checker violations', () => { - expect(wrapper).toHaveNoACViolations('SelectableTile'); + it('should have no AC violations', async () => { + const { container } = render( +
+ + Selectable + +
+ ); + await expect(container).toHaveNoACViolations('SelectableTile'); }); });