File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,9 @@ function testButtonFunctions(testCase)
253253 % Move items up
254254 testCase .press(button(3 ))
255255
256+ % Give a moment for update to run
257+ drawnow
258+
256259 % Verify new order
257260 newIdx = [2 3 1 4 5 ];
258261 testCase .verifyEqual(w .Value , testCase .ItemNames(newIdx ));
@@ -264,6 +267,9 @@ function testButtonFunctions(testCase)
264267 % Move items down
265268 testCase .press(button(4 ))
266269
270+ % Give a moment for update to run
271+ drawnow
272+
267273 % Verify new order
268274 newIdx = 1 : 5 ;
269275 testCase .verifyEqual(w .Value , testCase .ItemNames(newIdx ));
@@ -275,6 +281,9 @@ function testButtonFunctions(testCase)
275281 % Delete items
276282 testCase .press(button(2 ))
277283
284+ % Give a moment for update to run
285+ drawnow
286+
278287 % Verify new order
279288 newIdx = [1 4 5 ];
280289 testCase .verifyEqual(w .Value , testCase .ItemNames(newIdx ));
You can’t perform that action at this time.
0 commit comments