diff --git a/spec/features/comments/budget_investments_spec.rb b/spec/features/comments/budget_investments_spec.rb index b36f51b8f..7f36106a2 100644 --- a/spec/features/comments/budget_investments_spec.rb +++ b/spec/features/comments/budget_investments_spec.rb @@ -166,9 +166,12 @@ feature 'Commenting Budget::Investments' do fill_in "comment-body-budget_investment_#{investment.id}", with: 'Have you thought about...?' click_button 'Publish comment' + within "#tab-comments-label" do + expect(page).to have_content 'Comments (1)' + end + within "#comments" do expect(page).to have_content 'Have you thought about...?' - expect(page).to have_content 'Comments (1)' end end @@ -489,4 +492,4 @@ feature 'Commenting Budget::Investments' do end end -end \ No newline at end of file +end