Skip to content

Commit 3fd0c12

Browse files
committed
test(ui): update error chip mock
1 parent 54ffda3 commit 3fd0c12

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/sim/app/workspace/[workspaceId]/logs/error.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createRoot, type Root } from 'react-dom/client'
66
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
77

88
vi.mock('@sim/emcn', () => ({
9-
Button: ({ children, ...props }: { children: ReactNode } & Record<string, unknown>) => (
9+
Chip: ({ children, ...props }: { children: ReactNode } & Record<string, unknown>) => (
1010
<button {...props}>{children}</button>
1111
),
1212
}))
@@ -58,7 +58,7 @@ describe('LogsError boundary', () => {
5858
)
5959
})
6060

61-
it('calls reset when the refresh action is clicked', () => {
61+
it('calls reset when the retry action is clicked', () => {
6262
const reset = vi.fn()
6363
const error = Object.assign(new Error('boom'), { digest: 'abc123' })
6464

@@ -67,7 +67,7 @@ describe('LogsError boundary', () => {
6767
})
6868

6969
act(() => {
70-
findButtonByText('Refresh').click()
70+
findButtonByText('Try again').click()
7171
})
7272

7373
expect(reset).toHaveBeenCalledTimes(1)

0 commit comments

Comments
 (0)