Extract frontend_translations helper to support module (#34400)

This commit is contained in:
Matt Jankowski 2025-04-10 09:51:17 -04:00 committed by GitHub
parent 4c2f64907b
commit de19af3650
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 19 additions and 32 deletions

View file

@ -17,20 +17,7 @@ RSpec.describe 'NewStatuses', :inline_jobs, :js, :streaming do
status_text = 'This is a new status!'
within('.compose-form') do
fill_in "What's on your mind?", with: status_text
click_on 'Post'
end
expect(page)
.to have_css('.status__content__text', text: status_text)
end
it 'can be posted again' do
visit_homepage
status_text = 'This is a second status!'
within('.compose-form') do
fill_in "What's on your mind?", with: status_text
fill_in frontend_translations('compose_form.placeholder'), with: status_text
click_on 'Post'
end