fix(javaTest): correct route comparison and layer visibility
This commit is contained in:
@@ -27,6 +27,7 @@ def horizontal_overflow(page):
|
||||
|
||||
def run_point_to_point(page):
|
||||
"""Execute the real point simulation and verify route evidence is rendered."""
|
||||
page.locator("#swap-sites").click()
|
||||
page.locator("#run-point").click()
|
||||
page.locator("#task-status").wait_for(state="visible", timeout=120_000)
|
||||
page.locator("#loading-state").wait_for(state="hidden", timeout=120_000)
|
||||
@@ -60,6 +61,8 @@ def verify_map_interactions(page):
|
||||
page.locator("#show-current-route").uncheck()
|
||||
require(page.locator("#dynamic-route-layer .planned-only").count() == 0,
|
||||
"current route remained visible after its layer was disabled")
|
||||
require(page.locator("#dynamic-route-layer .approach").count() == 0,
|
||||
"approach route remained visible after the current layer was disabled")
|
||||
require(page.locator(".map-floor-layer:not([hidden]) .map-edge").count() == map_edges,
|
||||
"disabling current route changed the authoritative map")
|
||||
page.locator("#show-current-route").check()
|
||||
|
||||
Reference in New Issue
Block a user