sentry
sentry copied to clipboard
ref(js): Remove acceptance test env and related code
IS_ACCEPTANCE_TEST and its associated dynamic text/static text behavior were removed from the codebase.
Changes include:
- The
IS_ACCEPTANCE_TESTconstant was removed fromstatic/app/constants/index.tsx. - Build configurations in
rspack.config.tsandconfig/build-chartcuterie.tswere updated to remove references toIS_ACCEPTANCE_TEST. - The
getDynamicTextutility instatic/app/utils/getDynamicText.tsxwas simplified to always return thevalueparameter, eliminating the conditionalfixedtext behavior. Its corresponding test file,static/app/utils/getDynamicText.spec.tsx, was deleted. - The
testableTransitionutility instatic/app/utils/testableTransition.tsxwas simplified to always return the provided transition, removing logic that conditionally disabled animations for acceptance tests. - The
useResizablehook and related constants (SECONDARY_SIDEBAR_MIN_WIDTH,SECONDARY_SIDEBAR_MAX_WIDTH) were removed, simplifyingstatic/app/views/nav/secondary/secondarySidebar.tsxandstatic/app/views/nav/sidebar.tsx. - Conditional logic relying on
deprecateTransactionAlertswas removed fromstatic/app/views/discover/savedQuery/index.tsx,static/app/views/performance/transactionSummary/header.tsx, andstatic/app/views/performance/vitalDetail/vitalDetailContent.tsx. - Test files
static/app/views/explore/multiQueryMode/queryConstructors/menu.tsxandstatic/app/views/explore/multiQueryMode/locationUtils.tsxwere updated, andstatic/app/views/explore/multiQueryMode/queryRow.tsxwas adjusted to remove duplicate/delete query functionality. - The
build-acceptancescript inpackage.jsonwas modified to remove only theIS_ACCEPTANCE_TEST=1environment variable, preserving the script itself.
This streamlines the codebase by removing legacy testing-specific conditional rendering and animation logic.