-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ref(js): Remove acceptance test env and related code #93538
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
base: master
Are you sure you want to change the base?
ref(js): Remove acceptance test env and related code #93538
Conversation
🚨 Warning: This pull request contains Frontend and Backend changes! It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently. Have questions? Please ask in the |
❌ 7 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
…ed-components-f1ec
return { | ||
delay: 0, | ||
staggerChildren: 0, | ||
type: false, | ||
}; | ||
}; |
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.
pretty sure jest tests use this
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.
will make tests that open drawers or modals slower
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.
i'd say keep this
IS_ACCEPTANCE_TEST
and its associated dynamic text/static text behavior were removed from the codebase.Changes include:
IS_ACCEPTANCE_TEST
constant was removed fromstatic/app/constants/index.tsx
.rspack.config.ts
andconfig/build-chartcuterie.ts
were updated to remove references toIS_ACCEPTANCE_TEST
.getDynamicText
utility instatic/app/utils/getDynamicText.tsx
was simplified to always return thevalue
parameter, eliminating the conditionalfixed
text behavior. Its corresponding test file,static/app/utils/getDynamicText.spec.tsx
, was deleted.testableTransition
utility instatic/app/utils/testableTransition.tsx
was simplified to always return the provided transition, removing logic that conditionally disabled animations for acceptance tests.useResizable
hook and related constants (SECONDARY_SIDEBAR_MIN_WIDTH
,SECONDARY_SIDEBAR_MAX_WIDTH
) were removed, simplifyingstatic/app/views/nav/secondary/secondarySidebar.tsx
andstatic/app/views/nav/sidebar.tsx
.deprecateTransactionAlerts
was removed fromstatic/app/views/discover/savedQuery/index.tsx
,static/app/views/performance/transactionSummary/header.tsx
, andstatic/app/views/performance/vitalDetail/vitalDetailContent.tsx
.static/app/views/explore/multiQueryMode/queryConstructors/menu.tsx
andstatic/app/views/explore/multiQueryMode/locationUtils.tsx
were updated, andstatic/app/views/explore/multiQueryMode/queryRow.tsx
was adjusted to remove duplicate/delete query functionality.build-acceptance
script inpackage.json
was modified to remove only theIS_ACCEPTANCE_TEST=1
environment variable, preserving the script itself.This streamlines the codebase by removing legacy testing-specific conditional rendering and animation logic.