Skip to content

Commit

Permalink
今回の変更に合わせるために、メンターがコメントすると担当者になることを確認する従来のテストに追記
Browse files Browse the repository at this point in the history
  • Loading branch information
Judeeeee committed Jul 9, 2024
1 parent a9d70d6 commit dcbe16a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/system/comments_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ class CommentsTest < ApplicationSystemTestCase
fill_in('new_comment[description]', with: 'test')
end
click_button 'コメントする'
accept_alert '提出物の担当になりました。'
assert_text 'test'
assert_text 'Watch中'
end
Expand Down
1 change: 1 addition & 0 deletions test/system/product/checker_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def assigned_product_count
visit "/products/#{products(:product1).id}"

post_comment('担当者がいない提出物の場合、担当者になる')
accept_alert '提出物の担当になりました。'
assert_text '担当になりました。'
assert_text '担当から外れる'

Expand Down
1 change: 1 addition & 0 deletions test/system/product/unchecked_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class Product::UncheckedTest < ApplicationSystemTestCase
visit_with_auth "/products/#{product.id}", 'mentormentaro'
fill_in('new_comment[description]', with: 'test')
click_button 'コメントする'
accept_alert '提出物の担当になりました。'
within('.thread-comment.is-latest') do
assert_text 'mentormentaro'
assert_text 'test'
Expand Down
1 change: 1 addition & 0 deletions test/system/products_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ class ProductsTest < ApplicationSystemTestCase
visit_with_auth "/products/#{products(:product1).id}", 'komagata'
fill_in 'new_comment[description]', with: 'コメントしたら担当になるテスト'
click_button 'コメントする'
accept_alert '提出物の担当になりました。'
assert_text 'コメントしたら担当になるテスト'
visit current_path
assert_text '担当から外れる'
Expand Down

0 comments on commit dcbe16a

Please sign in to comment.