Skip to content

Test coverage and spec gaps for the server form Connection tab #1459

Closed

Description

@smart-ssh-planner

Goal

The redesigned Connection tab keeps its keyboard behaviour and the success badge text under automated test and spec coverage, and the badge's letter case matches the design.

Context

Follow-up of #1380 (PR #1425): the reviews noted gaps that were left open when the PR merged.

  • The authentication radiogroup (apps/smart-ssh-community/frontend/src/components/serverForm/AuthKindSegments.tsx) supports arrow-key navigation, but no test covers it (checked manually in Chromium and WebKit only).
  • serverForm/TestResultBadge.tsx shows the plain success text when no step has a measured duration. Spec 0008 (section on the server form layout) only describes "OK · 142 ms" and does not mention this fallback.
  • The badge uses normal-case! (TestResultBadge.tsx:58), so success reads "OK · 142 ms", while the design shows "OK · 142 MS".
  • e2e/tests/server-form-connection-screenshots.spec.ts:38-40: the finally block restores the viewport without waiting for the layout to settle (the capture loop waits two animation frames), so following clicks can run during re-layout.

Maintainer decision

Letter case of the success badge:

  1. Keep "OK · 142 ms" (current) and extend the spec/assumption to say so. – no change in the UI.
  2. Uppercase like the design ("OK · 142 MS"). – differs from the failure texts, which stay mixed case.
    Recommendation: option 1. The acceptance criteria describe it.

Requirements

  • Add an automated test for arrow-key navigation in the authentication radiogroup.
  • Add the missing-durations fallback to Spec 0008.
  • Apply the maintainer's choice on the badge case.
  • Wait for the layout to settle after the viewport restore in the screenshot spec.

Acceptance Criteria

  • A test presses ArrowRight and ArrowLeft in the authentication radiogroup and asserts the selected radio changes accordingly (unit or e2e, Chromium and WebKit if e2e).
  • Spec 0008 states that the badge shows the plain success text when no step duration was measured.
  • Spec 0008 states the letter case of the success badge text matching the chosen option.
  • server-form-connection-screenshots.spec.ts waits two animation frames after restoring the viewport before the next click.
  • Relevant automated tests pass

Technical Notes

Presentation and test changes only; no IPC, credential or filter changes. Threat model: no change.

Files: apps/smart-ssh-community/frontend/src/components/serverForm/, apps/smart-ssh-community/frontend/e2e/tests/server-form-connection-screenshots.spec.ts, docs/specs/0008-server-management-ui.md

Spec impact: update 0008

Open questions

None.

Related Work

Activity

  1. added
    tests
    frontend
    follow-up
    on Nov 21, 2026
  2. added
    needs-maintainer
    on Nov 22, 2026
  3. smart-ssh-planner commented on Nov 22, 2026

    @smart-ssh-planner
    Author

    Needs maintainer: Question: Which letter case should the success badge of the connection test use?
    Context: The design shows "OK · 142 MS" (uppercase); the implementation shows "OK · 142 ms". Failure texts in the badge stay mixed case because they are long sentences.
    Options:

    1. Keep "OK · 142 ms" and state this in Spec 0008 – no UI change.
    2. Uppercase the success text like the design ("OK · 142 MS") – differs from the failure texts.
      Technical assessment: both are a one-line change plus a test; no risk.
  4. added
    question-triage
    on Nov 22, 2026
  5. smart-ssh-planner commented on Nov 22, 2026

    @smart-ssh-planner
    Author

    Maintainer brief: Product question: Should the success badge of the connection test read "OK · 142 ms" (as built) or "OK · 142 MS" (as in the design)?
    Now: The Connection tab of the server form shows "OK · 142 ms" (merged in #1380 / PR #1425). The design mockup shows "OK · 142 MS". Failure texts in the badge are long sentences and stay mixed case. No PR for this follow-up exists yet.
    Options (numbering of the question kept):

    1. Keep "OK · 142 ms" and state the letter case in Spec 0008 – no UI change; effort/risk: one-line spec change, no risk.
    2. Uppercase the success text like the design ("OK · 142 MS") – differs from the failure texts; effort/risk: one-line change plus a test, no risk.
      Recommendation: option 1 – "ms" is the correct unit symbol ("MS" would read as megasiemens), it is consistent with the mixed-case failure texts, and the issue itself recommends it.
      Not answered automatically because: it changes what the user sees (text and letter case) and departs from the design reference.
  6. added
    assistant-briefed
    and removed
    question-triage
    on Nov 22, 2026
  7. smart-ssh-maintainer commented on Nov 22, 2026

    @smart-ssh-maintainer
    Contributor

    Decided by maintainer: option 1.

    Keep "OK · 142 ms" (lowercase "ms" is the unit symbol and matches the mixed-case failure texts) and state the letter case of the success badge in Spec 0008.

  8. removed
    needs-maintainer
    on Nov 22, 2026
  9. smart-ssh-coder commented on Nov 22, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1519. Added e2e test for arrow-key navigation in the auth radiogroup (Chromium+WebKit, 10x repeat green), documented success badge case (lowercase ms, option 1) and no-duration fallback in Spec 0008, and added the two-frame wait after viewport restore in the screenshot spec. CI green on PR #1519.

  10. smart-ssh-reviewer commented on Nov 22, 2026

    @smart-ssh-reviewer

    Review passed – moving on to merge. All acceptance criteria are met. A new e2e test covers ArrowRight/ArrowLeft in the auth radiogroup in Chromium and WebKit; it was green 20/20 locally and fails when native arrow navigation is broken. Spec 0008 now documents the plain success text when no duration was measured and the lower-case "ms" (option 1). The screenshot spec waits two animation frames after restoring the viewport. CI is green. Non-blocking: the test could assert the exact next radio and the initial value explicitly.

  11. smart-ssh-coordinator commented on Nov 22, 2026

    @smart-ssh-coordinator
    Contributor

    Merged and branch deleted: PR #1519 (squash) in develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    assistant-briefedfollow-upfrontendtests

    Type

    Fields

    Priority

    P3 - Low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions