Skip to content

Add editor.html login-screen screenshot test; style device-auth link as a button - #573

Merged
kcarnold merged 3 commits into
mainfrom
claude/editor-login-test-button-kdy18u
Jul 29, 2026
Merged

Add editor.html login-screen screenshot test; style device-auth link as a button#573
kcarnold merged 3 commits into
mainfrom
claude/editor-login-test-button-kdy18u

Conversation

@kcarnold

Copy link
Copy Markdown
Contributor

Summary

  • Add frontend/tests/editor-login-visual.spec.ts, a Playwright screenshot test that loads editor.html (real-auth mode, no persisted token) and asserts it lands on the "Not logged in yet?" login screen, with a toHaveScreenshot visual regression check.
  • Fix the device-authorization "Open approval page" link (shown mid-login-flow on the same screen) — it was a bare <a> tag that didn't visually match the surrounding Login/Cancel buttons. It now renders as a reshaped Button (href + attributes.target/rel), so it renders as a styled <a> that looks like the other buttons.

Test plan

  • npm run typecheck
  • npx eslint src/pages/app/index.tsx tests/editor-login-visual.spec.ts
  • npx playwright test tests/editor-login-visual.spec.ts (verified locally against /opt/pw-browsers/chromium, generating the baseline snapshot; not committed with an executablePath override — CI uses its own pinned browser install)
  • Manually screenshotted the device-auth polling state (mocked /auth/device/code) to confirm the "Open approval page" link now renders as a button

🤖 Generated with Claude Code

https://claude.ai/code/session_01RNp4SBCgAxVi442D3v8PWc


Generated by Claude Code

claude and others added 3 commits July 29, 2026 10:38
…as a button

The device-authorization "Open approval page" link was a bare <a> tag, easy to
miss next to the styled Login/Cancel buttons. Render it as a reshaped Button
(href renders an <a> under the hood) so it matches the rest of the login flow.
Mocks the device-code/token endpoints and freezes the page clock (Playwright's
clock API) so the live countdown renders deterministically, then screenshots
the polling state to lock in the "Open approval page" button styling.
@kcarnold
kcarnold merged commit 05633ec into main Jul 29, 2026
9 checks passed
@kcarnold
kcarnold deleted the claude/editor-login-test-button-kdy18u branch July 29, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants