fix(map): stabilize layers menu and offline cache UX
This commit is contained in:
@@ -85,7 +85,7 @@ test("reference subjects remain searchable by profile labels without a provider
|
||||
id: "map.reference.station.v1",
|
||||
title: "Метро",
|
||||
semanticTypes: ["map.station"],
|
||||
label: { mode: "attributes", fields: ["name", "official_name"] },
|
||||
label: { mode: "attributes", fields: ["name", "official_name", "alternate_names"] },
|
||||
};
|
||||
const index = buildMapSearchIndex({
|
||||
runtimeBindings: [{
|
||||
@@ -93,6 +93,7 @@ test("reference subjects remain searchable by profile labels without a provider
|
||||
presentationProfileId: stationProfile.id,
|
||||
facts: [point("osm.node.1", "map.station", {
|
||||
name: "Петроградская",
|
||||
alternate_names: ["Petrogradskaya station"],
|
||||
provider_note: "not searchable",
|
||||
})],
|
||||
}],
|
||||
@@ -100,6 +101,7 @@ test("reference subjects remain searchable by profile labels without a provider
|
||||
});
|
||||
|
||||
assert.equal(searchMapSubjects(index, "петрог").at(0)?.title, "Петроградская");
|
||||
assert.equal(searchMapSubjects(index, "Petrogradskaya").at(0)?.sourceId, "osm.node.1");
|
||||
assert.equal(searchMapSubjects(index, "osm.node.1").at(0)?.groupTitle, "Метро");
|
||||
assert.deepEqual(searchMapSubjects(index, "provider_note"), []);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user