Fix restricted map controls and release verification
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 5m17s

This commit is contained in:
2026-10-20 16:46:36 +05:00
parent de0e891b62
commit 690fe12c2c
8 changed files with 222 additions and 47 deletions

View File

@@ -134,3 +134,20 @@ test("release Markdown renders emphasis and safe links, escaping executable HTML
assert.match(html, /href="https:\/\/minegeo.site\/docs"/);
assert.doesNotMatch(html, /href="javascript:/);
});
test("release lists directly after a paragraph and wrapped bullet text remain lists", () => {
const html = renderToStaticMarkup(
createElement(ReleaseNotes, {
body: "This release improves:\n- **Controls:** Keyboard access\n and fixed map gestures.\n- Changelog lists.\nMore updates soon.",
}),
);
assert.match(html, /<p>This release improves:<\/p><ul>/);
assert.match(
html,
/<li><strong>Controls:<\/strong> Keyboard access and fixed map gestures\.<\/li>/,
);
assert.match(
html,
/<li>Changelog lists\.<\/li><\/ul><p>More updates soon\.<\/p>/,
);
});