Browse Source

Add test to make sure hot spots are below UI.

pull/980/head
Matthew Petroff 3 years ago
parent
commit
74b8319192
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      tests/run_tests.py

+ 10
- 0
tests/run_tests.py View File

@@ -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)


Loading…
Cancel
Save