diff --git a/felsokning/app/src/felsokning/__tests__/alva-yta.test.ts b/felsokning/app/src/felsokning/__tests__/alva-yta.test.ts index 86a5922..72e4758 100644 --- a/felsokning/app/src/felsokning/__tests__/alva-yta.test.ts +++ b/felsokning/app/src/felsokning/__tests__/alva-yta.test.ts @@ -276,3 +276,37 @@ describe("ytor utan verklig funktion är märkta som demonstration", () => { } }); }); + +// ---- Märkningen måste säga vad som gäller, inte var något annat finns -- +// +// Första formuleringen sa "Applications are handled outside this +// demonstration" — vilket lika gärna läses som att ansökningar tas emot +// någon annanstans, av ett riktigt system. Det gör de inte. En läsare +// frågade vad meningen betydde, vilket är svaret på om den var tydlig. +// +// En märkning som inte går att missförstå säger två saker: att ingenting +// sker, och vad läsaren ska göra i stället. +describe("demonstrationsmärkningen är entydig", () => { + const sida = (namn: string) => filer.find(([n]) => n.endsWith(`pages/alva/${namn}`))![1]; + + it("inloggningen säger vad besökaren ska göra", () => { + const kod = sida("LoggaIn.tsx"); + expect(kod).toContain("Type anything"); + expect(kod).toContain("no account is needed"); + }); + + it("ansökan säger att det inte finns någon mottagning", () => { + expect(sida("Ansokan.tsx")).toContain("there is no intake behind it yet"); + }); + + it("beskrivningen av avsedd drift är märkt som avsedd, inte som gällande", () => { + // Två meningar bredvid varandra, där den ena säger att inget händer + // och den andra beskriver en handläggningsprocess, upphäver varandra. + expect(sida("Ansokan.tsx")).toContain("Intended operation:"); + }); + + it("ingen märkning hänvisar till något som läsaren inte kan nå", () => { + // "finns i plattformstjänsten" hjälper ingen som står på sidan. + expect(sida("LoggaIn.tsx")).not.toContain("Real authentication exists in the platform service"); + }); +}); diff --git a/felsokning/app/src/pages/alva/Ansokan.tsx b/felsokning/app/src/pages/alva/Ansokan.tsx index 0222218..a9463be 100644 --- a/felsokning/app/src/pages/alva/Ansokan.tsx +++ b/felsokning/app/src/pages/alva/Ansokan.tsx @@ -52,8 +52,9 @@ export default function Ansokan() { Submitted - Nothing was submitted. The reference below was generated in the browser and exists - nowhere else. + Nothing was submitted and no one was notified. The reference below was computed in your + browser from what you typed, and exists nowhere else — it will be gone when you close + this page.
@@ -86,11 +87,13 @@ export default function Ansokan() { Request account - This form does not submit anything. The reference it returns is generated in the browser - and is not recorded. Applications are handled outside this demonstration. + Nothing is sent. Submitting this form stores nothing, notifies no one, and creates no + application — there is no intake behind it yet. The description below states how + registration is intended to work, not what happens today.

- Applications are reviewed manually. No payment is taken at this stage. + Intended operation: applications are reviewed manually and no payment is taken at this + stage.

diff --git a/felsokning/app/src/pages/alva/LoggaIn.tsx b/felsokning/app/src/pages/alva/LoggaIn.tsx index 6212916..d4efe18 100644 --- a/felsokning/app/src/pages/alva/LoggaIn.tsx +++ b/felsokning/app/src/pages/alva/LoggaIn.tsx @@ -38,9 +38,9 @@ export default function LoggaIn() { Login - This login authenticates nothing. Any organization and username signs in, and the password - is not checked. Real authentication exists in the platform service and is not part of this - demonstration. + This login authenticates nothing. Type anything into Organization and Username and press + Sign in — the password is not checked, and no account is needed. The platform's real + authentication is not reachable from this demonstration.