Currently "then" callback functions for these tests aren't called since
digest cycles were never triggered. Jasmine Spec Runner marks them 'passed'
only adding "SPEC HAS NO EXPECTATIONS" into their names.
This patch triggers a digest by calling a scope's $apply functions in a
correct place, deals with timeout properly and makes the tests work.
Reviewed: https:/ /review. opendev. org/753432 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=533892f080e bdf29173d11db4d 12f92809d39b36
Committed: https:/
Submitter: Zuul
Branch: master
commit 533892f080ebdf2 9173d11db4d12f9 2809d39b36
Author: Tatiana Ovchinnikova <email address hidden>
Date: Tue Sep 22 14:11:12 2020 -0500
Make text download and load groups tests work
Currently "then" callback functions for these tests aren't called since
digest cycles were never triggered. Jasmine Spec Runner marks them 'passed'
only adding "SPEC HAS NO EXPECTATIONS" into their names.
This patch triggers a digest by calling a scope's $apply functions in a
correct place, deals with timeout properly and makes the tests work.
Closes-Bug: #1894127
Change-Id: I00acc4b13fa0cc 05b8c6ccd202408 4527562f001