File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Dropzone/assets/test/unit Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ describe('DropzoneController', () => {
5454 <button type="button"
5555 class="dropzone-preview-button"
5656 data-dropzone-target="previewClearButton"
57+ data-dropzone-filename-param="0"
58+ data-action="dropzone#clear"
5759 data-testid="button"></button>
5860
5961 <div class="dropzone-preview-image"
@@ -102,8 +104,8 @@ describe('DropzoneController', () => {
102104
103105 button . click ( ) ;
104106
105- await waitFor ( ( ) => expect ( getByTestId ( container , 'input' ) ) . toHaveStyle ( { display : 'none ' } ) ) ;
106- 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 ' } ) ) ;
107109 await waitFor ( ( ) => expect ( getByTestId ( container , 'preview' ) ) . toHaveStyle ( { display : 'block' } ) ) ;
108110
109111 // The event should have been dispatched
You can’t perform that action at this time.
0 commit comments