feat(sync-help): SyncSection 도움말 버튼 + SyncHelpModal mount + ConflictModal onOpenHelp wiring

This commit is contained in:
altair823
2026-05-10 23:36:07 +09:00
parent 54ef394bb4
commit a5e1c1de35
2 changed files with 21 additions and 0 deletions

View File

@@ -72,4 +72,12 @@ describe('SyncSection', () => {
expect(mockSetAuto).toHaveBeenCalledWith(false);
});
});
it('도움말 버튼 클릭 → SyncHelpModal open', async () => {
render(<SyncSection />);
await waitFor(() => screen.getByRole('button', { name: /저장/ }));
fireEvent.click(screen.getByRole('button', { name: /^도움말$/ }));
await waitFor(() => screen.getByRole('heading', { name: /동기화 도움말/ }));
expect(screen.getByRole('heading', { name: /동기화 도움말/ })).toBeInTheDocument();
});
});