@@ -120,27 +120,30 @@ describe('UmbSorterController', () => {
120
120
expect ( items . length ) . to . equal ( 4 ) ;
121
121
} ) ;
122
122
123
- it ( 'sets all allowed draggable items to draggable' , ( ) => {
123
+ it ( 'sets all allowed draggable items to draggable' , async ( ) => {
124
124
const items = element . getSortableItems ( ) ;
125
125
expect ( items . length ) . to . equal ( 3 ) ;
126
+ await aTimeout ( 100 ) ;
126
127
items . forEach ( ( item ) => {
127
128
expect ( item . draggable ) . to . be . true ;
128
129
} ) ;
129
130
} ) ;
130
131
131
- it ( 'sets all disabled items non draggable' , ( ) => {
132
+ it ( 'sets all disabled items non draggable' , async ( ) => {
132
133
const items = element . getDisabledItems ( ) ;
133
134
expect ( items . length ) . to . equal ( 1 ) ;
135
+ await aTimeout ( 100 ) ;
134
136
items . forEach ( ( item ) => {
135
137
expect ( item . draggable ) . to . be . false ;
136
138
} ) ;
137
139
} ) ;
138
140
} ) ;
139
141
140
142
describe ( 'disable' , ( ) => {
141
- it ( 'sets all items to non draggable' , ( ) => {
143
+ it ( 'sets all items to non draggable' , async ( ) => {
142
144
element . sorter . disable ( ) ;
143
145
const items = element . getAllItems ( ) ;
146
+ await aTimeout ( 100 ) ;
144
147
items . forEach ( ( item ) => {
145
148
expect ( item . draggable ) . to . be . false ;
146
149
} ) ;
@@ -161,9 +164,10 @@ describe('UmbSorterController', () => {
161
164
} ) ;
162
165
} ) ;
163
166
164
- it ( 'sets all disabled items non draggable' , ( ) => {
167
+ it ( 'sets all disabled items non draggable' , async ( ) => {
165
168
const items = element . getDisabledItems ( ) ;
166
169
expect ( items . length ) . to . equal ( 1 ) ;
170
+ await aTimeout ( 100 ) ;
167
171
items . forEach ( ( item ) => {
168
172
expect ( item . draggable ) . to . be . false ;
169
173
} ) ;
0 commit comments