Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(Avatar): add smoke visual tests #1771

Merged
merged 5 commits into from
Dec 26, 2024
Merged

Conversation

itwillwork
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

title: titleCases,
} as const;

smokeTest('smoke, with image', async ({mount, expectScreenshot}) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you can write just with image here. smoke prefix is already included in smokeTest function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

});
});

smokeTest('smoke', async ({mount, expectScreenshot}) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with text instead of smoke

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

export const viewCases: Cases<AvatarProps['view']> = ['filled', 'outlined'];
export const backgroundColorCases: Cases<AvatarProps['backgroundColor']> = ['darkblue'];
export const borderColorCases: Cases<AvatarProps['borderColor']> = ['tomato'];
export const titleCases: Cases<AvatarProps['title']> = ['Title'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to compose it into one object

@itwillwork itwillwork force-pushed the add-smoke-tests/Avatar branch from 706c777 to 326a377 Compare December 26, 2024 10:09
@itwillwork itwillwork requested a review from DakEnviy December 26, 2024 10:12
@itwillwork itwillwork merged commit 7a34b64 into main Dec 26, 2024
6 checks passed
@itwillwork itwillwork deleted the add-smoke-tests/Avatar branch December 26, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants