Skip to content

Commit 5ca6a2e

Browse files
author
Carlos Hernández
committed
Update controller tests to reflect clear button behavior changes
1 parent 09bd131 commit 5ca6a2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Dropzone/assets/test/unit/controller.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ describe('DropzoneController', () => {
104104

105105
button.click();
106106

107-
await waitFor(() => expect(getByTestId(container, 'input')).toHaveStyle({ display: 'none' }));
108-
await waitFor(() => expect(getByTestId(container, 'placeholder')).toHaveStyle({ display: 'none' }));
107+
await waitFor(() => expect(getByTestId(container, 'input')).toHaveStyle({ display: 'block' }));
108+
await waitFor(() => expect(getByTestId(container, 'placeholder')).toHaveStyle({ display: 'block' }));
109109
await waitFor(() => expect(getByTestId(container, 'preview')).toHaveStyle({ display: 'block' }));
110110

111111
// The event should have been dispatched

0 commit comments

Comments
 (0)