@@ -107,7 +107,6 @@ describe('FilterInput', () => {
107
107
it ( 'renders focus class if showSuggestedTags is true and border style is not prevented' , async ( ) => {
108
108
await wrapper . setData ( { showSuggestedTags : true } ) ;
109
109
await wrapper . setProps ( { preventBorderStyle : false } ) ;
110
- await wrapper . vm . $nextTick ( ) ;
111
110
112
111
expect ( wrapper . findComponent ( '.filter.focus' ) . exists ( ) ) . toBe ( true ) ;
113
112
} ) ;
@@ -143,7 +142,6 @@ describe('FilterInput', () => {
143
142
144
143
it ( 'renders an filter label element that has a input-value attrib to resize the input' , async ( ) => {
145
144
await wrapper . setProps ( { value : inputValue } ) ;
146
- await wrapper . vm . $nextTick ( ) ;
147
145
const filterLabel = wrapper . findComponent ( '#filter-label' ) ;
148
146
// check input-value attrib for filter label contains the input value
149
147
expect ( filterLabel . attributes ( 'data-value' ) ) . toBe ( inputValue ) ;
@@ -158,7 +156,6 @@ describe('FilterInput', () => {
158
156
159
157
// simulate the `handleScrollbar` mixin triggering ON
160
158
await wrapper . setData ( { isScrolling : true } ) ;
161
- await wrapper . vm . $nextTick ( ) ;
162
159
163
160
expect ( inputBoxWrapper . classes ( 'scrolling' ) ) . toBe ( true ) ;
164
161
} ) ;
@@ -722,7 +719,6 @@ describe('FilterInput', () => {
722
719
await wrapper . vm . $nextTick ( ) ;
723
720
724
721
await wrapper . setProps ( { selectedTags : [ selectedTag ] } ) ;
725
- await wrapper . vm . $nextTick ( ) ;
726
722
selectedTagsComponent = wrapper . findComponent ( { ref : 'selectedTags' } ) ;
727
723
} ) ;
728
724
@@ -762,7 +758,6 @@ describe('FilterInput', () => {
762
758
document . activeElement . blur ( ) ;
763
759
await wrapper . vm . $nextTick ( ) ;
764
760
await wrapper . setProps ( { selectedTags : [ ] } ) ;
765
- await wrapper . vm . $nextTick ( ) ;
766
761
expect ( document . activeElement ) . not . toEqual ( input . element ) ;
767
762
} ) ;
768
763
@@ -917,7 +912,6 @@ describe('FilterInput', () => {
917
912
it ( 'deletes selected tag when tag is clicked on a virtual keyboard' , async ( ) => {
918
913
await wrapper . setData ( { keyboardIsVirtual : true } ) ;
919
914
await wrapper . setProps ( { selectedTags : [ selectedTag , 'Tag2' ] } ) ;
920
- await wrapper . vm . $nextTick ( ) ;
921
915
922
916
selectedTagsComponent . vm . $emit ( 'click-tags' , { tagName : 'Tag2' } ) ;
923
917
await flushPromises ( ) ;
@@ -946,7 +940,6 @@ describe('FilterInput', () => {
946
940
947
941
it ( 'resets filters when `deleteButton` is clicked' , async ( ) => {
948
942
await wrapper . setProps ( { value : '' , selectedTags : [ ] } ) ;
949
- await wrapper . vm . $nextTick ( ) ;
950
943
const deleteBtn = wrapper . findComponent ( '.filter__delete-button' ) ;
951
944
deleteBtn . trigger ( 'click' ) ;
952
945
@@ -1142,7 +1135,6 @@ describe('FilterInput', () => {
1142
1135
1143
1136
it ( 'assigns selected tags to active tags when cmd + a is triggered on input' , async ( ) => {
1144
1137
await wrapper . setProps ( { value : 'Foo' , selectedTags : tags } ) ;
1145
- await wrapper . vm . $nextTick ( ) ;
1146
1138
const selectedTagsComponent = wrapper . findComponent ( { ref : 'selectedTags' } ) ;
1147
1139
wrapper . findComponent ( 'input' ) . trigger ( 'keydown' , {
1148
1140
key : 'a' ,
@@ -1418,7 +1410,6 @@ describe('FilterInput', () => {
1418
1410
beforeEach ( async ( ) => {
1419
1411
jest . resetAllMocks ( ) ;
1420
1412
await wrapper . setProps ( { selectedTags } ) ;
1421
- await wrapper . vm . $nextTick ( ) ;
1422
1413
selectedTagsComponent = wrapper . findComponent ( { ref : 'selectedTags' } ) ;
1423
1414
spyFocusTag = jest . spyOn ( selectedTagsComponent . vm , 'focusTag' ) . mockReturnValueOnce ( ) ;
1424
1415
} ) ;
0 commit comments