]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Fix the table mouseenter event handling test 29354/head
authorStephan Müller <smueller@suse.com>
Fri, 5 Jul 2019 09:54:40 +0000 (11:54 +0200)
committerStephan Müller <smueller@suse.com>
Tue, 30 Jul 2019 16:32:07 +0000 (18:32 +0200)
commitb15077d1a50c9b9d5f1a3486846b404aaf5502d3
tree000e9b838b81e3a964b3009ba4dee7e39d589648
parent85fa207048f84d9c6125070861de8ae3d02b3c7b
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>
(cherry picked from commit efc79990b25cd6fe4be1ab640305aaa6c829740d)

Conflicts (trivial + linting issue):
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.spec.ts