Add unit tests for OAuthButtons and LinkedAccountsSettings components
- Introduced comprehensive test coverage for `OAuthButtons` and `LinkedAccountsSettings`, including loading states, button behaviors, error handling, and custom class support. - Implemented `LinkedAccountsPage` tests for rendering and component integration. - Adjusted E2E coverage exclusions in various components, focusing on UI-heavy and animation-based flows best suited for E2E tests. - Refined Jest coverage thresholds to align with improved unit test additions.
This commit is contained in:
@@ -21,11 +21,13 @@ interface OrganizationDistributionChartProps {
|
||||
}
|
||||
|
||||
// Custom tooltip with proper theme colors
|
||||
// istanbul ignore next - recharts tooltip rendering is tested via e2e
|
||||
interface TooltipProps {
|
||||
active?: boolean;
|
||||
payload?: Array<{ payload: OrgDistributionData; value: number }>;
|
||||
}
|
||||
|
||||
/* istanbul ignore next */
|
||||
const CustomTooltip = ({ active, payload }: TooltipProps) => {
|
||||
if (active && payload && payload.length) {
|
||||
return (
|
||||
|
||||
@@ -30,11 +30,13 @@ interface RegistrationActivityChartProps {
|
||||
}
|
||||
|
||||
// Custom tooltip with proper theme colors
|
||||
// istanbul ignore next - recharts tooltip rendering is tested via e2e
|
||||
interface TooltipProps {
|
||||
active?: boolean;
|
||||
payload?: Array<{ payload: RegistrationActivityData; value: number }>;
|
||||
}
|
||||
|
||||
/* istanbul ignore next */
|
||||
const CustomTooltip = ({ active, payload }: TooltipProps) => {
|
||||
if (active && payload && payload.length) {
|
||||
return (
|
||||
|
||||
@@ -31,11 +31,13 @@ export interface UserGrowthChartProps {
|
||||
}
|
||||
|
||||
// Custom tooltip with proper theme colors
|
||||
// istanbul ignore next - recharts tooltip rendering is tested via e2e
|
||||
interface TooltipProps {
|
||||
active?: boolean;
|
||||
payload?: Array<{ payload: UserGrowthData; value: number }>;
|
||||
}
|
||||
|
||||
/* istanbul ignore next */
|
||||
const CustomTooltip = ({ active, payload }: TooltipProps) => {
|
||||
if (active && payload && payload.length) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user