31 lines
705 B
Python
31 lines
705 B
Python
from pathlib import Path
|
|
|
|
|
|
def test_index_exposes_portal_atlas_ui_shell() -> None:
|
|
html = Path('index.html').read_text()
|
|
|
|
for token in [
|
|
'portal-atlas-toggle',
|
|
'portal-atlas-overlay',
|
|
'portal-atlas-list',
|
|
'PORTAL ATLAS',
|
|
]:
|
|
assert token in html
|
|
|
|
|
|
def test_portals_module_supports_atlas_render_and_query_open() -> None:
|
|
js = Path('modules/portals.js').read_text()
|
|
|
|
for token in [
|
|
'renderPortalAtlas',
|
|
'portal-atlas-list',
|
|
'portal-atlas-toggle',
|
|
'URLSearchParams',
|
|
'atlas=1',
|
|
'action_label',
|
|
'access_mode',
|
|
'readiness_state',
|
|
'environment',
|
|
]:
|
|
assert token in js
|