Assert Street Level expansion timeout and document provider precedence

This commit is contained in:
Sameh Khamis committed 2026-10-09 17:49:26 -07:00
1 parent 1ee07468c4
commit 893294c7d4
3 files changed
+20 -7

No files matched your search

+4 -1
View File
@@ -5,7 +5,10 @@ An explicit list replaces the default Mapillary provider; an empty list removes
all imagery providers. Without that option, Mapillary is registered only when
`sources.mapillary` is supplied. An absent source leaves Street Level registered
with a truthful no-provider state, preserving layer controls and share tokens.
Malformed supplied sources and provider definitions still fail validation.
Malformed selected sources and provider definitions still fail validation.
An explicit provider list bypasses the unused Mapillary source, including its
validation. Layer share identities are preserved; custom provider switches require
a corresponding serialization contract.
## God's Eye View in conversations — October 2, 2026
+11 -5
View File
@@ -622,11 +622,17 @@ async function main() {
await target.click(
'.panel-collapse-btn[data-collapse-target="street-level-panel"]',
);
await settle(
target,
() =>
getComputedStyle(document.getElementById('sl-body')).display ===
'flex',
assert.ok(
await settle(
target,
() =>
!document
.getElementById('street-level-panel')
.classList.contains('collapsed') &&
getComputedStyle(document.getElementById('sl-body')).display ===
'flex',
),
'Street Level panel did not expand before the timeout',
);
};
await expandStrip();
+5 -1
View File
@@ -5,7 +5,11 @@ import * as picking from '../../data/pickRegistry.js';
import * as input from '../../data/inputOwnership.js';
import * as render from '../../renderGovernor.js';
/** Inject providers, or use Mapillary only when its source is supplied. */
/**
* Inject providers, or use Mapillary only when its source is supplied.
* An explicit provider list replaces the default; unused sources.mapillary is
* neither constructed nor validated, including when the list is empty.
*/
export function createApplicationStreetLevel({
surface,
sources = {},