Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAPTHCAのモック実装を使えるようにする #14740

Closed
syuilo opened this issue Oct 10, 2024 · 1 comment · Fixed by #14745
Closed

CAPTHCAのモック実装を使えるようにする #14740

syuilo opened this issue Oct 10, 2024 · 1 comment · Fixed by #14745
Assignees
Labels
✨Feature This adds/improves/enhances a feature

Comments

@syuilo
Copy link
Member

syuilo commented Oct 10, 2024

現在CAPTHCA関連は自動化できないのでテスト時は無効にされているが、CAPTHCAを使う場合のフローもテストできるようにしたい

テスト用の仮想的な新しいCAPTCHAプロバイダを用意する感じにすれば疑似的にCAPTHCAを含むフローをテストできそう

reCAPTHCA、hCaptcha等のほかにテスト時だけtestCaptchaみたいなモック実装を利用可能にし、testCaptchaはサーバーサイドは予め決められたトークンでのみPASSするような実装にしておけば良さそう

@syuilo
Copy link
Member Author

syuilo commented Oct 10, 2024

testCaptchaみたいなのを実装すれば、Cypressとかe2eテスト時だけでなくローカル環境での動作確認時もlocalhostでありながらCAPTHCAを含むフローのテストを行えることになり便利そう

@syuilo syuilo self-assigned this Oct 10, 2024
@kakkokari-gtyih kakkokari-gtyih added the ✨Feature This adds/improves/enhances a feature label Oct 10, 2024
@syuilo syuilo changed the title CAPTHCAを含んだテスト CAPTHCAno Oct 10, 2024
@syuilo syuilo changed the title CAPTHCAno CAPTHCAのモック実装を使えるようにする Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨Feature This adds/improves/enhances a feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants