Skip to content

Commit d5629e8

Browse files
feat(e2e): add ability to add value with label to screenshot (#8147)
* feat(e2e): add ability to add value with label to screenshot * fix: optimize undefined props
1 parent f265868 commit d5629e8

File tree

719 files changed

+1746
-1508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

719 files changed

+1746
-1508
lines changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions

packages/vkui/src/components/Alert/Alert.e2e-playground.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
ComponentPlayground,
55
type ComponentPlaygroundProps,
66
} from '@vkui-e2e/playground-helpers';
7+
import { withLabel } from '@vkui-e2e/utils';
78
import { Alert, type AlertActionInterface, type AlertProps } from './Alert';
89

910
const AppWrapper = ({ children, ...restProps }: AppDefaultWrapperProps) => (
@@ -81,10 +82,16 @@ export const AlertLongWordPlayground = (props: ComponentPlaygroundProps) => {
8182
propSets={[
8283
{
8384
title: [
84-
'Оченьоченьоченьдлинноенеразрывноеслововзаголовкекотороедолжнопереноситьсянановуюстрочкуиневыходитьзаграницы',
85+
withLabel(
86+
'Оченьоченьоченьдлинноенеразрывноеслововзаголовкекотороедолжнопереноситьсянановуюстрочкуиневыходитьзаграницы',
87+
'Very long title',
88+
),
8589
],
8690
description: [
87-
'Оченьоченьоченьдлинноенеразрывноеслововописаниикотороедолжнопереноситьсянановуюстрочкуиневыходитьзаграницы',
91+
withLabel(
92+
'Оченьоченьоченьдлинноенеразрывноеслововописаниикотороедолжнопереноситьсянановуюстрочкуиневыходитьзаграницы',
93+
'Very long description',
94+
),
8895
],
8996
},
9097
]}
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions

packages/vkui/src/components/Avatar/Avatar.e2e-playground.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
type ComponentPlaygroundProps,
66
testImage,
77
} from '@vkui-e2e/playground-helpers';
8+
import { withLabel } from '@vkui-e2e/utils';
89
import {
910
IconExampleForBadgeBasedOnImageBaseSize,
1011
IconExampleForFallbackBasedOnImageBaseSize,
@@ -18,7 +19,7 @@ export const AvatarPlayground = (props: ComponentPlaygroundProps) => {
1819
{...props}
1920
propSets={[
2021
{
21-
src: [undefined, testImage],
22+
src: [undefined, withLabel(testImage, 'image')],
2223
initials: [undefined, 'AB'],
2324
fallbackIcon: [
2425
<IconExampleForFallbackBasedOnImageBaseSize key="icon-fallback" />,
@@ -42,7 +43,12 @@ export const AvatarPlayground = (props: ComponentPlaygroundProps) => {
4243
},
4344
{
4445
gradientColor: ['custom'],
45-
style: [{ backgroundImage: 'linear-gradient(#e66465, #9198e5)' }],
46+
style: [
47+
withLabel(
48+
{ backgroundImage: 'linear-gradient(#e66465, #9198e5)' },
49+
'With linear-gradient background',
50+
),
51+
],
4652
},
4753
{
4854
size: [96, 24],
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)