View on GitHub

leaflet-city-mapper

A small 3D rendering engine for leaflet

Step definitions

Test guide Project README

Step definitions connect Gherkin to Node assertions and, where needed, Playwright browser interactions.

flowchart LR
  Scenario["Feature scenario"] --> Definition["Given / When / Then definition"]
  Definition --> Node["Node assertions"]
  Definition --> Browser["World page / browser context"]
  Browser --> Fixture["Local fixtures / instrumented plugin"]
  Node --> Result["Cucumber result"]
  Browser --> Result

Start with the matching feature and its domain’s *.steps.js file. Reuse fixtures and the existing world rather than adding network-dependent setup. Examples: workers.steps.js, walk.steps.js, and source-documentation.steps.js.

Setup and steps share a 30-second scenario budget. Split independent checks instead of increasing timeouts; cleanup is exempt. See scenario-budget.js.

Terrain zoom checks run each zoom direction separately. An explicit request gate holds incoming terrain partially loaded until the frame assertions finish, then releases it in finally; this must not depend on a fixed delay or GPU speed.