Repository navigation
feat(e2e): @lumorphia/e2e (Lumorphia の発行元のふり、E2E の TLS、Playwright の helper) - #27
Merged
Merged
Conversation
prismtone の e2e/mock-lumorphia.ts・tls.ts・lumorphia.ts から。発行元のふりが出す ID トークン・Logout Token・退会の知らせは auth-client そのもので確かめる。退会の知らせ (送り直しを含む) を送る口を足した (ADR-0010)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
発行元のふりは auth-client を import しない (テストからだけ使う)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
route.fetch は Node から送るので *.lumorphia.test を引けず、Scenote の E2E で使えなかった。アプリに届かないときは 502 と理由を返す。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
サービスの E2E の土台を
@lumorphia/e2eにする (ADR-0010)。Scenote のログイン (S4) から使う。中身は prismtone のe2e/mock-lumorphia.ts・tls.ts・lumorphia.tsを元にした。./tls: E2E 専用の CA と 127.0.0.1 の証明書、Chromium に信頼させる公開鍵のハッシュ./mock-issuer: 発行元のふり。discovery・JWKS・token・UserInfo・/api/characters、サービスが足す API (extraRoutes)。テストからの操作で認可の code、back-channel logout、退会の知らせ (新しく足した。送り直しも)。binlumorphia-mock-issuerは環境変数で起動./playwright: CSP の違反を見張るtest、approveLumorphia、sendBackchannelLogout、sendAccountEvent、lumorphiaUserScenote で使ってみて直したこと (2 つ目のコミット)
/oauth2/authorize)。承認する利用者は、テストが発行元のオリジンの Cookie に置く (approveLumorphia)。prismtone の形 (page.route+route.fetch) は、route.fetchが Node から送るので*.lumorphia.testを引けず、Scenote では動かなかったapp_unreachable: ...) を返す。これで Scenote の開発の証明書に 127.0.0.1 が無いことがすぐ分かった確かめ方
偽の発行元が出すものを、auth-client そのもので確かめる (
getUserInfo、createLogoutTokenVerifier、createAccountEventVerifier)。auth-client が変わって偽物とずれたら、このテストが落ちる。そのために、偽物のコードは auth-client を import しない (ESLint とその検査を足した)。pnpm test: 300 件 (e2e は 42 件)公開について
新しいパッケージなので、develop → main で manifest がコンフリクトする (AGENTS.md の手順)。公開したら、Scenote の CI が読めるよう
@lumorphia/e2eの Actions access に lumorphia/scenote の Read が要る。🤖 Generated with Claude Code