{"vsa":"0.9.0","type":"StaticManifest","manifestVersion":"1.0.0","viewId":"docs-v0-1-testing-screens-2","title":"Testing screens (preview) (2) · Docs v0.1","requires":[{"name":"zone.text","version":"^1.0.0"}],"optional":[{"name":"render.dom","version":"^1.0.0"},{"name":"projection.slots","version":"^1.0.0"}],"trustDomain":"self","dataClass":"public","zones":[{"zoneId":"l-1","kind":"text","label":"Luxel"},{"zoneId":"l-2","kind":"text","label":"Docs"},{"zoneId":"l-3","kind":"text","label":"Demo"},{"zoneId":"l-4","kind":"text","label":"Numbers"},{"zoneId":"l-5","kind":"text","label":"Security"},{"zoneId":"l-6","kind":"text","label":"Releases"},{"zoneId":"l-7","kind":"text","label":"Roadmap"},{"zoneId":"l-8","kind":"text","label":"Blog"},{"zoneId":"l-9","kind":"text","label":"Español"},{"zoneId":"t-10","kind":"text","label":"Docs v0.1"},{"zoneId":"l-11","kind":"text","label":"Search documentation →"},{"zoneId":"t-12","kind":"text","label":"Start"},{"zoneId":"l-13","kind":"text","label":"Overview"},{"zoneId":"l-14","kind":"text","label":"Getting started"},{"zoneId":"l-15","kind":"text","label":"Primeros pasos"},{"zoneId":"l-16","kind":"text","label":"Concepts"},{"zoneId":"t-17","kind":"text","label":"Guide"},{"zoneId":"l-18","kind":"text","label":"Views"},{"zoneId":"l-19","kind":"text","label":"Screens"},{"zoneId":"l-20","kind":"text","label":"Testing screens"},{"zoneId":"l-21","kind":"text","label":"Forms"},{"zoneId":"l-22","kind":"text","label":"Collections"},{"zoneId":"l-23","kind":"text","label":"Charts"},{"zoneId":"l-24","kind":"text","label":"Polling"},{"zoneId":"l-25","kind":"text","label":"Languages"},{"zoneId":"l-26","kind":"text","label":"Server"},{"zoneId":"l-27","kind":"text","label":"Sessions"},{"zoneId":"l-28","kind":"text","label":"Production"},{"zoneId":"l-29","kind":"text","label":"Tooling"},{"zoneId":"l-30","kind":"text","label":"From React or Next.js"},{"zoneId":"t-31","kind":"text","label":"Reference"},{"zoneId":"l-32","kind":"text","label":"Typical React mistakes"},{"zoneId":"l-33","kind":"text","label":"API"},{"zoneId":"l-34","kind":"text","label":"Diagnostics"},{"zoneId":"t-35","kind":"text","label":"Security"},{"zoneId":"l-36","kind":"text","label":"Security guide"},{"zoneId":"l-37","kind":"text","label":"Threat model"},{"zoneId":"l-38","kind":"text","label":"Claims and evidence"},{"zoneId":"t-39","kind":"text","label":"Project"},{"zoneId":"l-40","kind":"text","label":"Known gaps"},{"zoneId":"l-41","kind":"text","label":"Changelog"},{"zoneId":"l-42","kind":"text","label":"Index of all sections"},{"zoneId":"t-43","kind":"text","label":"Luxel v0.1 · Guide · part 2 of 2"},{"zoneId":"t-44","kind":"text","label":"Testing screens (preview) (2)"},{"zoneId":"t-45","kind":"text","label":"The command"},{"zoneId":"t-46","kind":"text","label":"luxel test [files…] [--mutate-bindings [--jobs ‹n>] [--mutant-timeout ‹ms>]] [--json] [--root ‹dir>]"},{"zoneId":"t-47","kind":"text","label":"Without files it runs tests/**/*.test.mjs (also .js, .ts, .mts) of the app with node --test. A test file can also be run directly with node --test tests/contacts.test.mjs from the app's directory; the harness then checks the build itself. "},{"zoneId":"t-48","kind":"text","label":"Outside node:test, call close() (exported by @luxel-framework/cli/test) when you are done, so the host stops."},{"zoneId":"t-49","kind":"text","label":"What it does not cover yet"},{"zoneId":"t-50","kind":"text","label":"A test names a screen by its id, a string. A screen file is TSX, and Node does not run TSX, so a test cannot import the screen itself. views.‹id> from the generated .luxel/server.ts is typed."},{"zoneId":"t-51","kind":"text","label":"Rows with inputs (an event that sends a collection's rows), the options of a Select, charts and number zones, links, pages with several contexts, and Luxel Visual pages."},{"zoneId":"t-52","kind":"text","label":"Nothing a browser computes: layout, focus, what is visible, CSS. Use Playwright for those."},{"zoneId":"t-53","kind":"text","label":"The build check compares modification times. It catches a forgotten build, not a build made from other sources."},{"zoneId":"t-54","kind":"text","label":"The host prints its start line (\"msg\":\"luxel.start\") once per test file."},{"zoneId":"t-55","kind":"text","label":"A collection is named by the compiled view's label, because the served page does not carry it."},{"zoneId":"t-56","kind":"text","label":"The gateway's own refusals (rate limit, origin, token) are Spanish literals in the status zone, whatever the app's language (GAPS.md). A test that reads such a message reads that text."},{"zoneId":"t-57","kind":"text","label":"What has been measured, and what has not"},{"zoneId":"t-58","kind":"text","label":"Measured on the repository's fixture app (two screens, in-memory stores, the suite of 9 tests):"},{"zoneId":"t-59","kind":"text","label":"the suite passes without a browser, and --mutate-bindings detects 12 of 12 bound zones; a suite that never reads one zone is reported with exactly that zone;"},{"zoneId":"t-60","kind":"text","label":"time for luxel test after luxel build, 10 runs each, on a shared development machine (an indication, not the criterion's measurement): node:test's own duration, median 926 ms in the first measurement and median 1174 ms in a second one taken "},{"zoneId":"t-61","kind":"text","label":"while the machine was under heavy load (load average 36). Not measured on the official measurement machine."},{"zoneId":"t-62","kind":"text","label":"Not measured yet (the D4 criterion is decided on the demo app, which is rewritten later in the sprint):"},{"zoneId":"t-63","kind":"text","label":"the demo app's behaviours (search, page, validation, create) as screen tests: NOT RUN;"},{"zoneId":"t-64","kind":"text","label":"mutation of the demo's views: NOT RUN;"},{"zoneId":"t-65","kind":"text","label":"parity with the E2E on the same cases: the Playwright spec of the fixture's cases is written (tests/e2e/screen-parity.spec.mjs); it was NOT RUN by its author;"},{"zoneId":"t-66","kind":"text","label":"the ≤ 1 s time on the demo: NOT MEASURED;"},{"zoneId":"t-67","kind":"text","label":"a run with PostgreSQL stores: NOT RUN."},{"zoneId":"l-68","kind":"text","label":"Previous: Testing screens (preview)"},{"zoneId":"l-69","kind":"text","label":"Previous: Screens"},{"zoneId":"l-70","kind":"text","label":"Next: Forms"},{"zoneId":"l-71","kind":"text","label":"Edit this page on GitHub"},{"zoneId":"t-72","kind":"text","label":"This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app."},{"zoneId":"t-73","kind":"text","label":"Measured when the site is built: the runtime files this page loads, compressed as they are sent."},{"zoneId":"l-74","kind":"text","label":"GitHub"},{"zoneId":"l-75","kind":"text","label":"Discussions"},{"zoneId":"l-76","kind":"text","label":"Apache-2.0"},{"zoneId":"l-77","kind":"text","label":"Ties and losses"},{"zoneId":"t-78","kind":"text","label":"Made by IntiOps. Luxel 0.1.0-beta.1 is a beta: no external security review yet."}],"events":[],"messages":{"network":"Could not reach the server. Check your connection and try again.","unexpected":"Something went wrong. Reload the page."},"extensions":{"render.dom@1":{"root":{"el":"div","class":"site site--en page--doc","children":[{"el":"header","class":"topbar","children":[{"zone":"l-1","el":"span","class":"brand"},{"el":"div","class":"nav","children":[{"zone":"l-2","el":"span","class":"nav-link"},{"zone":"l-3","el":"span","class":"nav-link"},{"zone":"l-4","el":"span","class":"nav-link"},{"zone":"l-5","el":"span","class":"nav-link"},{"zone":"l-6","el":"span","class":"nav-link"},{"zone":"l-7","el":"span","class":"nav-link"},{"zone":"l-8","el":"span","class":"nav-link"}]},{"zone":"l-9","el":"span","class":"lang"}]},{"el":"main","class":"main main--doc","children":[{"el":"div","class":"sidebar","children":[{"zone":"t-10","el":"p","class":"sidebar-version"},{"zone":"l-11","el":"span","class":"side-link side-link--search"},{"zone":"t-12","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-13","el":"span","class":"side-link"},{"zone":"l-14","el":"span","class":"side-link"},{"zone":"l-15","el":"span","class":"side-link"},{"zone":"l-16","el":"span","class":"side-link"}]},{"zone":"t-17","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-18","el":"span","class":"side-link"},{"zone":"l-19","el":"span","class":"side-link"},{"zone":"l-20","el":"span","class":"side-link side-link--current"},{"zone":"l-21","el":"span","class":"side-link"},{"zone":"l-22","el":"span","class":"side-link"},{"zone":"l-23","el":"span","class":"side-link"},{"zone":"l-24","el":"span","class":"side-link"},{"zone":"l-25","el":"span","class":"side-link"},{"zone":"l-26","el":"span","class":"side-link"},{"zone":"l-27","el":"span","class":"side-link"},{"zone":"l-28","el":"span","class":"side-link"},{"zone":"l-29","el":"span","class":"side-link"},{"zone":"l-30","el":"span","class":"side-link"}]},{"zone":"t-31","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-32","el":"span","class":"side-link"},{"zone":"l-33","el":"span","class":"side-link"},{"zone":"l-34","el":"span","class":"side-link"}]},{"zone":"t-35","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-36","el":"span","class":"side-link"},{"zone":"l-37","el":"span","class":"side-link"},{"zone":"l-38","el":"span","class":"side-link"}]},{"zone":"t-39","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-40","el":"span","class":"side-link"},{"zone":"l-41","el":"span","class":"side-link"}]},{"zone":"l-42","el":"span","class":"side-link side-link--index"}]},{"el":"section","class":"article","children":[{"zone":"t-43","el":"p","class":"doc-meta"},{"zone":"t-44","el":"h1","class":"page-title"},{"el":"div","class":"block","children":[{"zone":"t-45","el":"h2","class":"section-title"},{"zone":"t-46","el":"p","class":"code"},{"el":"p","class":"para","children":[{"zone":"t-47","el":"span"},{"zone":"t-48","el":"span"}]},{"zone":"t-49","el":"h2","class":"section-title"},{"el":"div","class":"list-wrap","children":[{"el":"ul","class":"list","children":[{"zone":"t-50","el":"li"},{"zone":"t-51","el":"li"},{"zone":"t-52","el":"li"},{"zone":"t-53","el":"li"},{"zone":"t-54","el":"li"},{"zone":"t-55","el":"li"},{"zone":"t-56","el":"li"}]}]},{"zone":"t-57","el":"h2","class":"section-title"},{"zone":"t-58","el":"p","class":"para"},{"el":"div","class":"list-wrap","children":[{"el":"ul","class":"list","children":[{"zone":"t-59","el":"li"},{"el":"li","children":[{"zone":"t-60","el":"span"},{"zone":"t-61","el":"span"}]}]}]},{"zone":"t-62","el":"p","class":"para"},{"el":"div","class":"list-wrap","children":[{"el":"ul","class":"list","children":[{"zone":"t-63","el":"li"},{"zone":"t-64","el":"li"},{"zone":"t-65","el":"li"},{"zone":"t-66","el":"li"},{"zone":"t-67","el":"li"}]}]}]},{"el":"div","class":"pager","children":[{"zone":"l-68","el":"span","class":"pager-link"},{"zone":"l-69","el":"span","class":"pager-link"},{"zone":"l-70","el":"span","class":"pager-link pager-link--next"}]},{"zone":"l-71","el":"span","class":"edit-link"}]}]},{"el":"footer","class":"footer","children":[{"zone":"t-72","el":"p","class":"jsline"},{"zone":"t-73","el":"p","class":"jsnote"},{"el":"div","class":"footer-links","children":[{"zone":"l-74","el":"span","class":"footer-link"},{"zone":"l-75","el":"span","class":"footer-link"},{"zone":"l-76","el":"span","class":"footer-link"},{"zone":"l-77","el":"span","class":"footer-link"}]},{"zone":"t-78","el":"p","class":"made"}]}]}},"projection.slots@1":{"template":"/_luxel/a/docs-v0-1-testing-screens-2.b57f85dc06b5.html","map":"/_luxel/a/docs-v0-1-testing-screens-2.slots.38c3eaf6247a.json"}}}