Skip to content

Commit a867595

Browse files
committed
refactor: update WalletHomeOnboardingSteps tests to use toBeOnTheScreen matcher
1 parent c83b379 commit a867595

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/components/UI/WalletHomeOnboardingSteps/WalletHomeOnboardingSteps.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,24 +114,24 @@ describe('WalletHomeOnboardingSteps', () => {
114114
it('renders fund hero and progress for step 0', () => {
115115
const { getByTestId } = renderSteps();
116116

117-
expect(getByTestId('steps-root-hero-fund')).toBeTruthy();
117+
expect(getByTestId('steps-root-hero-fund')).toBeOnTheScreen();
118118
expect(
119119
getByTestId(WalletHomeOnboardingStepsSelectors.PROGRESS_LABEL),
120-
).toBeTruthy();
120+
).toBeOnTheScreen();
121121
});
122122

123123
it('renders trade hero for step 1', () => {
124124
const { getByTestId } = renderSteps({
125125
walletHomeOnboardingSteps: { suppressedReason: null, stepIndex: 1 },
126126
});
127-
expect(getByTestId('steps-root-hero-trade')).toBeTruthy();
127+
expect(getByTestId('steps-root-hero-trade')).toBeOnTheScreen();
128128
});
129129

130130
it('renders notifications hero for step 2', () => {
131131
const { getByTestId } = renderSteps({
132132
walletHomeOnboardingSteps: { suppressedReason: null, stepIndex: 2 },
133133
});
134-
expect(getByTestId('steps-root-hero-notifications')).toBeTruthy();
134+
expect(getByTestId('steps-root-hero-notifications')).toBeOnTheScreen();
135135
});
136136

137137
it('treats missing stepIndex in persisted state as 0', () => {

0 commit comments

Comments
 (0)