Skip to content

Commit

Permalink
feat(e2e): add multiple viewports to responsive-image
Browse files Browse the repository at this point in the history
  • Loading branch information
kiesha-telus committed Feb 19, 2021
1 parent ad8ffbe commit ce22db2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion e2e/visual/components/CartesianResponsiveImage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ import { Cartesian, Responsive } from '@compositor/kit'
import ResponsiveImage from '../../../packages/ResponsiveImage'

const ResponsiveImageContainer = props => (
<Responsive>
<Responsive
viewports={[
{ width: 320, height: 568 },
{ width: 640, height: 360 },
{ width: 768, height: 1024 },
{ width: 1024, height: 543 },
{ width: 1440, height: 880 },
]}
>
<Cartesian
{...props}
component={ResponsiveImage}
Expand Down

0 comments on commit ce22db2

Please sign in to comment.