-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix: Clicking on report link does not add external_link_clicked to si… #29969
base: main
Are you sure you want to change the base?
Changes from all commits
4bc69ef
b22bea6
990cc0d
a3f8f6d
ffe1d9a
a3b7a0a
95ca259
79a2a4f
9ece707
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ function ReportLink({ | |
<Text marginTop={1} display={Display.Flex}> | ||
{t('somethingDoesntLookRight', [ | ||
<ButtonLink | ||
data-testid="alert-provider-report-link" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We avoid adding There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like this suggestion. I do like using findByText to also test text expectations simultaneously There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But text can change, making tests flaky and prone to failure due to content updates. Coupling tests to specific text, especially when supporting multiple languages is not recommended. Why do we not want to use test-ids? it supports testing and makes things stable. |
||
key={`security-provider-button-supporturl-${provider}`} | ||
size={ButtonLinkSize.Inherit} | ||
href={reportUrl ?? ZENDESK_URLS.SUPPORT_URL} | ||
|
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.
Do we want to change this to use jest matchers as well?