-
Notifications
You must be signed in to change notification settings - Fork 98
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
Conversation
Preview is ready. |
Visual Tests Report is ready. |
c716e30
to
bddb8cd
Compare
title: titleCases, | ||
} as const; | ||
|
||
smokeTest('smoke, with image', async ({mount, expectScreenshot}) => { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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}) => { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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']; |
There was a problem hiding this comment.
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
706c777
to
326a377
Compare
No description provided.