This commit is contained in:
linonetwo 2026-02-11 17:01:08 +08:00
parent 965f3100fb
commit f91cce6e8e
6 changed files with 17 additions and 17 deletions

View file

@ -49,10 +49,10 @@ it('should test feature', async () => {
// For tests that trigger state updates, wait for UI to stabilize
it('should update when data changes', async () => {
render(<Component />);
// Trigger update
someObservable.next(newData);
// Wait for UI to reflect the change
await waitFor(() => {
expect(screen.getByText('Updated Content')).toBeInTheDocument();