-
Notifications
You must be signed in to change notification settings - Fork 4
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
ときどきCIのテストが落ち、ReRunすると落ちない #745
Labels
bug
Something isn't working
Comments
エラー内容は、酒フォームで酒の名前から加水・原酒を原酒に自動補完する機能。 エラーログ...........................................................................................................................................................................................................................F................................................................................................
Failures:
1) Sake Form Completion for Detail for detail accordion warimizu is completed 原酒
Failure/Error: expect(page).to have_select("sake_warimizu", selected:)
expected to find visible select box "sake_warimizu" that is not disabled but there were no matches. Also found "", which matched the selector but not all filters.
[Screenshot Image]: /home/runner/work/sakazuki/sakazuki/tmp/capybara/failures_r_spec_example_groups_sake_form_completion_for_detail_for_detail_accordion_warimizu_is_completed_原酒_309.png
# ./spec/system/sake_form_completion_for_detail_spec.rb:178:in `block (4 levels) in <top (required)>'
Finished in 1 minute 48.9 seconds (files took 3.81 seconds to load)
3[16](https://github.com/momocus/sakazuki/actions/runs/9731029983/job/26854920162#step:9:17) examples, 1 failure
Failed examples:
rspec ./spec/system/sake_form_completion_for_detail_spec.rb:[17](https://github.com/momocus/sakazuki/actions/runs/9731029983/job/26854920162#step:9:18)5 # Sake Form Completion for Detail for detail accordion warimizu is completed 原酒
Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected
Coverage report generated for RSpec to /home/runner/work/sakazuki/sakazuki/coverage/coverage.xml. 310 / 321 LOC (96.57%) covered
Error: Process completed with exit code 1. |
よくあるのはJSの実行よりもCapybaraセレクタが早すぎること。 でも1sスリープとかは入れたくない。テスト全体が恐ろしく遅くなる。 |
「フレーキーなテスト」というらしい。 |
カピバラは失敗したアサーションを自動で待ってリトライしてくれる。 これの面白いところは、
なんだね。 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
💡 Summary
ときどきテストが失敗する。
再現性が低い、おしまいだ。
📝 再現方法
>わからない!!!<
🤬 失敗例
https://github.com/momocus/sakazuki/actions/runs/9731029983/job/26854920162
The text was updated successfully, but these errors were encountered: