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

add data-testid to tipseen close button #2682

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

Conversation

meromco
Copy link
Contributor

@meromco meromco commented Dec 26, 2024

add data-testid to tipseen close button

Signed-off-by: Merom Cohen <meromco@monday.com>
@meromco meromco requested a review from a team as a code owner December 26, 2024 13:21
@@ -152,6 +152,7 @@ const Tipseen: VibeComponent<TipseenProps> & {
[styles.dark]: closeButtonTheme === "dark" || closeButtonTheme === "fixed-dark"
})}
onClick={onClose}
data-testid={getTestId(ComponentDefaultTestId.TIPSEEN_CLOSE_BUTTON)}
Copy link
Member

Choose a reason for hiding this comment

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

We usually add data-testid for the root elements of components and try to avoid having many data-testids on a lot of elements. We encourage using aria/role attributes as it's the common best practice, in this example you can use the aria-label: [data-testid="tipseen"] [aria-label="Close"]

meromco and others added 2 commits December 26, 2024 17:56
Signed-off-by: Merom Cohen <meromco@monday.com>
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.

2 participants