]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Fix the table mouseenter event handling test
authorStephan Müller <smueller@suse.com>
Fri, 5 Jul 2019 09:54:40 +0000 (11:54 +0200)
committerStephan Müller <smueller@suse.com>
Fri, 5 Jul 2019 11:39:29 +0000 (13:39 +0200)
commitefc79990b25cd6fe4be1ab640305aaa6c829740d
treeaf13f0ee17c51253053f2d7350295707433efe80
parent9b967b42f09f435cfabd0937f6a5c5912379d9a6
mgr/dashboard: Fix the table mouseenter event handling test

This test only failed if all suites were run, for some reason the window
object got replaced with a mock window. The workaround is not to use
the window object, but mock the called function in order to call the
values as expected by window.

Fixes: https://tracker.ceph.com/issues/40580
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.spec.ts