From 74b83191928fb0b39fb2888adb7be1f5daad1d0a Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Sat, 27 Mar 2021 16:58:17 -0400 Subject: [PATCH] Add test to make sure hot spots are below UI. --- tests/run_tests.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/run_tests.py b/tests/run_tests.py index b496ed4..c6e34a9 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -156,6 +156,16 @@ class PannellumTester(object): comparator = self.take_screenshot("panorama") self.equal_images(reference, comparator, "cube") + # Check to make sure hotspots are below controls + self.browser.execute_script("viewer.setPitch(-35)") + self.browser.execute_script("viewer.setYaw(32)") + time.sleep(2) + action = ActionChains(self.browser) + elem = self.browser.find_element_by_class_name("pnlm-zoom-in") + action.move_to_element(elem).move_by_offset(1, 1).click().perform() + assert self.browser.execute_script("return viewer.getHfov() == 95") + print("PASS: hot spots below UI") + # Check hot spot self.browser.find_element_by_class_name("pnlm-scene").click() time.sleep(5)