-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(TestComponent): made a new kind of component testing
- Loading branch information
1 parent
b9bda43
commit cc2a8f7
Showing
126 changed files
with
1,089 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ node_modules | |
/build | ||
/styles/**/*.css | ||
/coverage | ||
/test-component/playwright/.cache | ||
/playwright-report |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/components/ArrowToggle/__component__/ArrowToggle.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
|
||
import {expect, test} from '@playwright/experimental-ct-react'; | ||
|
||
import {ArrowToggle} from '../ArrowToggle'; | ||
|
||
test.describe('ArrowToggle', () => { | ||
test('render ArrowToggle by default', async ({mount}) => { | ||
const component = await mount(<ArrowToggle />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('render ArrowToggle by direction top ', async ({mount}) => { | ||
const component = await mount(<ArrowToggle direction="top" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('render ArrowToggle by direction left ', async ({mount}) => { | ||
const component = await mount(<ArrowToggle direction="left" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('render ArrowToggle by direction bottom ', async ({mount}) => { | ||
const component = await mount(<ArrowToggle direction="bottom" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('render ArrowToggle by direction right ', async ({mount}) => { | ||
const component = await mount(<ArrowToggle direction="right" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
}); |
Binary file added
BIN
+149 Bytes
...c.tsx-snapshots/ArrowToggle-render-ArrowToggle-by-default-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+314 Bytes
...pec.tsx-snapshots/ArrowToggle-render-ArrowToggle-by-default-1-webkit-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+149 Bytes
...pshots/ArrowToggle-render-ArrowToggle-by-direction-bottom-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+314 Bytes
...napshots/ArrowToggle-render-ArrowToggle-by-direction-bottom-1-webkit-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+168 Bytes
...napshots/ArrowToggle-render-ArrowToggle-by-direction-left-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+288 Bytes
...-snapshots/ArrowToggle-render-ArrowToggle-by-direction-left-1-webkit-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+166 Bytes
...apshots/ArrowToggle-render-ArrowToggle-by-direction-right-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+286 Bytes
...snapshots/ArrowToggle-render-ArrowToggle-by-direction-right-1-webkit-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+153 Bytes
...snapshots/ArrowToggle-render-ArrowToggle-by-direction-top-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+278 Bytes
...x-snapshots/ArrowToggle-render-ArrowToggle-by-direction-top-1-webkit-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
import React from 'react'; | ||
|
||
import {Gear} from '@gravity-ui/icons'; | ||
import {expect, test} from '@playwright/experimental-ct-react'; | ||
|
||
import {Button} from '../Button'; | ||
|
||
import {ButtonIcon, ButtonWitchIcon} from './ButtonHelpers'; | ||
|
||
test.describe('Button', () => { | ||
test('render buttom by default', async ({mount}) => { | ||
const component = await mount(<Button>Button</Button>); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('should render icon', async ({mount}) => { | ||
const component = await mount( | ||
<Button> | ||
<Gear width={20} height={20} /> | ||
Left | ||
</Button>, | ||
); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('should render icon in Button.Icon', async ({mount}) => { | ||
const component = await mount(<ButtonIcon />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('selected when selected=true prop is given', async ({mount}) => { | ||
const component = await mount(<Button selected>Button</Button>); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('loading when loading=true prop is given', async ({mount}) => { | ||
const component = await mount(<Button loading>Button</Button>); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('should render <a /> tag', async ({mount}) => { | ||
const href = 'https://yandex.ru'; | ||
const target = '_blank'; | ||
|
||
const component = await mount( | ||
<Button href={href} target={target}> | ||
Button | ||
</Button>, | ||
); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('render with given submit type', async ({mount}) => { | ||
const component = await mount(<Button type="submit">Button</Button>); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('render with given reset type', async ({mount}) => { | ||
const component = await mount(<Button type="reset">Button</Button>); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('show given content', async ({mount}) => { | ||
const content = 'Some content'; | ||
|
||
const component = await mount(<Button>{content}</Button>); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('show given children', async ({mount}) => { | ||
const childrenText = 'Children content'; | ||
|
||
const component = await mount( | ||
<Button> | ||
<span>{childrenText}</span> | ||
</Button>, | ||
); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('add style', async ({mount}) => { | ||
const style = {color: 'red'}; | ||
|
||
const component = await mount(<Button style={style}>Button</Button>); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('should render Icon component', async ({mount}) => { | ||
const component = await mount(<ButtonWitchIcon />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
}); |
Binary file added
BIN
+985 Bytes
.../__component__/Button.spec.tsx-snapshots/Button-add-style-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.12 KB
...on/__component__/Button.spec.tsx-snapshots/Button-add-style-1-webkit-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.28 KB
...-snapshots/Button-loading-when-loading-true-prop-is-given-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.56 KB
...sx-snapshots/Button-loading-when-loading-true-prop-is-given-1-webkit-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1002 Bytes
...Button.spec.tsx-snapshots/Button-render-buttom-by-default-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.07 KB
..._/Button.spec.tsx-snapshots/Button-render-buttom-by-default-1-webkit-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1002 Bytes
...on.spec.tsx-snapshots/Button-render-with-given-reset-type-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.07 KB
...tton.spec.tsx-snapshots/Button-render-with-given-reset-type-1-webkit-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1002 Bytes
...n.spec.tsx-snapshots/Button-render-with-given-submit-type-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.07 KB
...ton.spec.tsx-snapshots/Button-render-with-given-submit-type-1-webkit-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.02 KB
...napshots/Button-selected-when-selected-true-prop-is-given-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.2 KB
...-snapshots/Button-selected-when-selected-true-prop-is-given-1-webkit-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+976 Bytes
...on.spec.tsx-snapshots/Button-should-render-Icon-component-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.26 KB
...tton.spec.tsx-snapshots/Button-should-render-Icon-component-1-webkit-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1002 Bytes
...nt__/Button.spec.tsx-snapshots/Button-should-render-a-tag-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.07 KB
...nent__/Button.spec.tsx-snapshots/Button-should-render-a-tag-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.01 KB
...ent__/Button.spec.tsx-snapshots/Button-should-render-icon-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.42 KB
...onent__/Button.spec.tsx-snapshots/Button-should-render-icon-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.03 KB
...ec.tsx-snapshots/Button-should-render-icon-in-Button-Icon-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.43 KB
...spec.tsx-snapshots/Button-should-render-icon-in-Button-Icon-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.01 KB
...nt__/Button.spec.tsx-snapshots/Button-show-given-children-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.89 KB
...nent__/Button.spec.tsx-snapshots/Button-show-given-children-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.77 KB
...ent__/Button.spec.tsx-snapshots/Button-show-given-content-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.74 KB
...onent__/Button.spec.tsx-snapshots/Button-show-given-content-1-webkit-darwin.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
|
||
import {Gear} from '@gravity-ui/icons'; | ||
|
||
import {Icon} from '../../Icon'; | ||
import {Button} from '../Button'; | ||
|
||
export const ButtonWitchIcon = () => { | ||
return ( | ||
<Button> | ||
<Icon data={Gear} /> | ||
Left | ||
</Button> | ||
); | ||
}; | ||
|
||
export const ButtonIcon = () => { | ||
return ( | ||
<Button> | ||
<Button.Icon> | ||
<Gear width={20} height={20} /> | ||
</Button.Icon> | ||
Left | ||
</Button> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
import React from 'react'; | ||
|
||
import {expect, test} from '@playwright/experimental-ct-react'; | ||
|
||
import {WrapperCard} from './WrapperCard'; | ||
|
||
test.describe('Card test component', () => { | ||
test('render card by default', async ({mount}) => { | ||
const component = await mount(<WrapperCard />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test.describe('render with different themes', () => { | ||
test('danger', async ({mount}) => { | ||
const component = await mount(<WrapperCard theme="danger" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('info', async ({mount}) => { | ||
const component = await mount(<WrapperCard theme="info" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('normal', async ({mount}) => { | ||
const component = await mount(<WrapperCard theme="normal" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('success', async ({mount}) => { | ||
const component = await mount(<WrapperCard theme="success" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('positive', async ({mount}) => { | ||
const component = await mount(<WrapperCard theme="positive" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('warning', async ({mount}) => { | ||
const component = await mount(<WrapperCard theme="warning" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
}); | ||
|
||
test.describe('render with different size', () => { | ||
test('m', async ({mount}) => { | ||
const component = await mount(<WrapperCard size="m" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('l', async ({mount}) => { | ||
const component = await mount(<WrapperCard size="l" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
}); | ||
|
||
test.describe('render with different view', () => { | ||
test('outlined', async ({mount}) => { | ||
const component = await mount(<WrapperCard view="outlined" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('clear', async ({mount}) => { | ||
const component = await mount(<WrapperCard view="clear" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('filled', async ({mount}) => { | ||
const component = await mount(<WrapperCard view="filled" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('raised', async ({mount}) => { | ||
const component = await mount(<WrapperCard view="raised" />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
}); | ||
|
||
test('selected when selected=true prop is given', async ({mount}) => { | ||
const component = await mount(<WrapperCard selected={true} />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('not selected when selected=false prop is given', async ({mount}) => { | ||
const component = await mount(<WrapperCard selected={false} />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('disabled when disabled=true prop is given', async ({mount}) => { | ||
const component = await mount(<WrapperCard disabled={true} />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('not disabled when disabled=false prop is given', async ({mount}) => { | ||
const component = await mount(<WrapperCard disabled={false} />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
}); |
Binary file added
BIN
+2.28 KB
...-test-component-disabled-when-disabled-true-prop-is-given-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.32 KB
...rd-test-component-disabled-when-disabled-true-prop-is-given-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.28 KB
...-component-not-disabled-when-disabled-false-prop-is-given-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.32 KB
...st-component-not-disabled-when-disabled-false-prop-is-given-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.28 KB
...-component-not-selected-when-selected-false-prop-is-given-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.32 KB
...st-component-not-selected-when-selected-false-prop-is-given-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.28 KB
....tsx-snapshots/Card-test-component-render-card-by-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.32 KB
...ec.tsx-snapshots/Card-test-component-render-card-by-default-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.34 KB
...napshots/Card-test-component-render-with-different-size-l-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.33 KB
...-snapshots/Card-test-component-render-with-different-size-l-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.28 KB
...napshots/Card-test-component-render-with-different-size-m-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.32 KB
...-snapshots/Card-test-component-render-with-different-size-m-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.31 KB
...s/Card-test-component-render-with-different-themes-danger-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.38 KB
...ots/Card-test-component-render-with-different-themes-danger-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.36 KB
...ots/Card-test-component-render-with-different-themes-info-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.45 KB
...shots/Card-test-component-render-with-different-themes-info-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.28 KB
...s/Card-test-component-render-with-different-themes-normal-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.32 KB
...ots/Card-test-component-render-with-different-themes-normal-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.39 KB
...Card-test-component-render-with-different-themes-positive-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.46 KB
...s/Card-test-component-render-with-different-themes-positive-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.39 KB
.../Card-test-component-render-with-different-themes-success-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.46 KB
...ts/Card-test-component-render-with-different-themes-success-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.38 KB
.../Card-test-component-render-with-different-themes-warning-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.49 KB
...ts/Card-test-component-render-with-different-themes-warning-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.92 KB
...hots/Card-test-component-render-with-different-view-clear-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.89 KB
...pshots/Card-test-component-render-with-different-view-clear-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.12 KB
...ots/Card-test-component-render-with-different-view-filled-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.16 KB
...shots/Card-test-component-render-with-different-view-filled-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.28 KB
...s/Card-test-component-render-with-different-view-outlined-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.32 KB
...ots/Card-test-component-render-with-different-view-outlined-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.58 KB
...ots/Card-test-component-render-with-different-view-raised-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.47 KB
...shots/Card-test-component-render-with-different-view-raised-1-webkit-darwin.png
Oops, something went wrong.
Binary file added
BIN
+2.28 KB
...-test-component-selected-when-selected-true-prop-is-given-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+3.32 KB
...rd-test-component-selected-when-selected-true-prop-is-given-1-webkit-darwin.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
|
||
import {Card, CardProps} from '../Card'; | ||
|
||
const qaId = 'card-component'; | ||
const cardText = 'Some text'; | ||
|
||
export const WrapperCard = (props: Omit<CardProps, 'children'>) => { | ||
return ( | ||
<div style={{padding: 20}}> | ||
<Card {...props} qa={qaId}> | ||
{cardText} | ||
</Card> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.