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

feat(Rows, Cards, FeedbackScreen, FormFields, Buttons): add test ids for components and their internal elements #1270

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

marcoskolodny
Copy link
Collaborator

Issue: Link

Copy link

github-actions bot commented Oct 17, 2024

Size stats

master this branch diff
Total JS 12.1 MB 12.1 MB +5.72 kB
JS without icons 1.94 MB 1.95 MB +5.72 kB
Lib overhead 68.2 kB 68.3 kB +16 B
Lib overhead (gzip) 16.6 kB 16.6 kB +9 B

Copy link

github-actions bot commented Oct 17, 2024

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

Copy link

github-actions bot commented Oct 17, 2024

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-lr4hfci2g-flows-projects-65bb050e.vercel.app

Built with commit 6650b2b.
This pull request is being automatically deployed with vercel-action

Copy link

github-actions bot commented Oct 17, 2024

Screenshot tests report

✔️ All passing

@@ -90,6 +90,7 @@ export const InternalBoxed = React.forwardRef<HTMLDivElement, Props & InternalPr
ref
) => {
const isInverseOutside = useIsInverseOrMediaVariant();
const isInverseInside = isInverse || variant === 'inverse' || variant === 'media';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unrelated, but Boxed was not working properly when using media variant

ref={ref}
className={styles.touchableContainer}
aspectRatio={aspectRatio}
aria-label={isTouchable ? undefined : ariaLabelProp}
>
<Boxed className={styles.boxed} isInverse={isInverse} width="100%" minHeight="100%">
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unrelated, but I saw this usages of deprecated isInverse prop and updated them in order to use variant instead

@@ -74,7 +74,7 @@ export const Default: StoryComponent<Args> = ({forceNonCssAspectRatio}) => {
);

return (
<Stack space={16} dataAttributes={{testId: 'story'}}>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unrelated, but camelCase is not correct here

@marcoskolodny marcoskolodny marked this pull request as ready for review October 18, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant