Academy courses
convex/academy.test.ts
| Test | Result |
|---|---|
| academy › offers courses by role, hides quiz answers, completes on lessons and a pass, and lets admins assign | Passed |
| academy › tags lessons, tidied, and gives courses their lessons’ tags | Passed |
| academy › keeps image and PDF lessons’ files, checks them and tidies them up | Passed |
| academy › offers a course published to chosen organisations only to them | Passed |
| academy › awards a course’s badge on completion, on the profile too, and checks the picture | Passed |
| academy › packages a course as SCORM 1.2 | Passed |
| academy › imports a course from its own SCORM package, as a draft with new lessons | Passed |
| generated badges › adds the academy_badge prompt with the defaults, stores a safe SVG and refuses an unsafe one | Passed |
| generated badges › raises evidence and a manager assessment when a course that builds skills is completed | Passed |
| generated badges › builds trains from courses in order, offers them by role, and drops a deleted course | Passed |
Certificates
src/lib/certificate.test.ts
| Test | Result |
|---|---|
| certificate PDF › writes a PDF whose cross-reference table points at each object | Passed |
Badge pictures
convex/lib/svg.test.ts
| Test | Result |
|---|---|
| safeSvg › accepts a plain drawing, adding the namespace and dropping code fences | Passed |
| safeSvg › refuses anything active or loaded from elsewhere | Passed |
Demo videos
convex/demoVideos.test.ts
| Test | Result |
|---|---|
| demo videos › lists HeyGen avatars, their looks and voices for admins, following pages and dropping unfinished ones | Passed |
| demo videos › generates looks from a Look Pack for admins only | Passed |
| demo videos › retries failed presenter clips, for one video or all of them | Passed |
| demo videos › waits and asks again when HeyGen rate-limits a clip request, then gives up | Passed |
| demo videos › Connect sets this deployment’s runner token on the Video Processor’s Worker and points the runner at it | Passed |
| demo videos › keeps the back office’s API keys encrypted: admins set them, nobody reads a secret back | Passed |
| demo videos › imports a PDF’s uploaded pages as slides, re-importing the same file in place | Passed |
| demo videos › imports a shared Google Slides deck, re-imports in place, joins slides and claims them for the runner | Passed |
| demo videos › lets admins tag a video, viewers see the tags, and nobody else in | Passed |
| demo videos › edits, queues, records and builds a video, throwing away stale results | Passed |
| demo videos › lists the Video Processor’s jobs, and lets admins retry, cancel and dismiss them | Passed |
| demo videos › adds title slides first, worded from Settings unless they say otherwise | Passed |
| demo videos › adds an introduction after the title slide, listing the scenes, each brought in by its sentence | Passed |
| demo videos › logs clips HeyGen made through the API, not imported ones, for the HeyGen card | Passed |
| demo videos › keeps where the runner runs: polling by default, or a Cloudflare container at an https address | Passed |
| demo videos › a cloud runner leaves scenes recorded at localhost to a runner on a machine | Passed |
| demo videos › keeps each video’s sign-in: the email on the video, the password encrypted and never sent back | Passed |
| demo videos › puts a dragged scene where it was dropped, the others keeping their order | Passed |
| demo videos › signs in to other sites with the video’s own steps, without Clerk, and only on runners that can | Passed |
AI narration
convex/backofficeAi.test.ts
| Test | Result |
|---|---|
| narrationFrom puts each action on the sentence that introduces it | Passed |
| narrationFrom refuses an empty reply | Passed |
Narration timing
convex/lib/demoTiming.test.ts
| Test | Result |
|---|---|
| demo timing › splits narration into sentences | Passed |
| demo timing › reads caption start times | Passed |
| demo timing › finds where each sentence starts across split captions | Passed |
| demo timing › keeps a pause inside its sentence and ignores markup when matching captions | Passed |
| demo timing › tells the narration prompt the voice engine’s markup | Passed |
| demo timing › says when a sentence isn’t in the captions | Passed |
| demo timing › keys change with what they are made from | Passed |
| demo timing › times the introduction a sentence or line per scene, with an optional lead-in | Passed |
| demo timing › times sentences that open alike each at their own caption | Passed |
Voices
convex/lib/voiceMarkup.test.ts
| Test | Result |
|---|---|
| clipVoice › speaks a HeyGen voice with HeyGen’s engine, which follows [tags], whatever the video’s engine says | Passed |
| clipVoice › keeps an ElevenLabs voice on the video’s engine and its model | Passed |
Google Slides import
convex/lib/googleSlides.test.ts
| Test | Result |
|---|---|
| Google Slides import › reads each slide’s id, words and notes, in order | Passed |
| Google Slides import › takes only docs.google.com deck links | Passed |
PowerPoint and PDF import
admin/src/slideFiles.test.ts
| Test | Result |
|---|---|
| PowerPoint import › reads each shown slide’s words and speaker notes, in show order | Passed |
| PowerPoint import › says when a file isn’t a PowerPoint | Passed |
| PDF notes pages › finds where a picture is drawn through the page’s transforms | Passed |
| PDF notes pages › takes the words above the slide as its heading and those below as the notes, without asides or footers | Passed |
Word import
admin/src/docx.test.ts
| Test | Result |
|---|---|
| readDocx › reads headings, lists and paragraphs as Markdown | Passed |
| readDocx › refuses a file that isn’t Word | Passed |
Sound recordings
admin/src/wav.test.ts
| Test | Result |
|---|---|
| encodeWav › writes a 16-bit mono PCM WAV header and clamped samples | Passed |

