-
Notifications
You must be signed in to change notification settings - Fork 71
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
日報が0件の場合、日報ダウンロードボタンを非表示に修正 #4128
日報が0件の場合、日報ダウンロードボタンを非表示に修正 #4128
Conversation
@eatplaynap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tksmasaki
実装お疲れ様です!機能は問題なさそうでしたが、2点だけ気になったのでご確認ください🙏
確認手順が書いてあってすごくレビューしやすかったので、自分も取り入れようと思いました〜!
@@ -7,4 +7,16 @@ class CurrentUser::ReportsTest < ApplicationSystemTestCase | |||
visit_with_auth '/current_user/reports', 'hatsuno' | |||
assert_equal '自分の日報 | FJORD BOOT CAMP(フィヨルドブートキャンプ)', title | |||
end | |||
|
|||
test 'show reports download btn when reports is present' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
テスト追加してるのさすがです!
ここは文法的にはwhen reports is present
よりwhen a report is present
が適切かな?と思いました💪
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確かに変な文章になってますね... ご指摘ありがとうございます!
改めて考えてみたのですが、テスト対象のユーザーは複数の日報があったので when reports exist
ではどうでしょうか? 違和感がありましたら、教えていただきたいです🙇♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
テスト対象のユーザーは複数の日報があったので when reports exist
確かにこちらのほうがテスト対象を正確に表現していて良いと思います!
こちら参考にさせていただき、修正しました! |
@tksmasaki |
2cdd34a
to
7a67f9c
Compare
@eatplaynap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tksmasaki
修正ありがとうございます〜
LGTMです😄
@komagata |
@@ -7,4 +7,16 @@ class CurrentUser::ReportsTest < ApplicationSystemTestCase | |||
visit_with_auth '/current_user/reports', 'hatsuno' | |||
assert_equal '自分の日報 | FJORD BOOT CAMP(フィヨルドブートキャンプ)', title | |||
end | |||
|
|||
test 'show reports download btn when reports exist' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test 'show reports download btn when reports exist' do | |
test 'show reports download button when reports exist' do |
特に理由がなければ略さない方がいいかも?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@komagata
特に理由なく略していました... 気をつけます🙇♂️
修正したものをプッシュしたので、再度確認よろしくお願いします!
7a67f9c
to
781e25c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確認しました、OKですー🙆♂️
Issue #4113
変更前
変更後
ローカル環境での確認方法
feature/not-display-report-dl-btn-when-no-reports
ブランチをローカル環境で起動するhajime
でログインkananashi
でログイン