|
|
|
@ -11,13 +11,13 @@ RSpec.describe 'Account notes', :inline_jobs, :js, :streaming do
|
|
|
|
let(:finished_onboarding) { true }
|
|
|
|
let(:finished_onboarding) { true }
|
|
|
|
|
|
|
|
|
|
|
|
let!(:other_account) { Fabricate(:account) }
|
|
|
|
let!(:other_account) { Fabricate(:account) }
|
|
|
|
|
|
|
|
let(:note_text) { 'This is a personal note' }
|
|
|
|
|
|
|
|
|
|
|
|
before { as_a_logged_in_user }
|
|
|
|
before { as_a_logged_in_user }
|
|
|
|
|
|
|
|
|
|
|
|
it 'can be written and viewed' do
|
|
|
|
it 'can be written and viewed' do
|
|
|
|
visit_profile(other_account)
|
|
|
|
visit_profile(other_account)
|
|
|
|
|
|
|
|
|
|
|
|
note_text = 'This is a personal note'
|
|
|
|
|
|
|
|
fill_in frontend_translations('account_note.placeholder'), with: note_text
|
|
|
|
fill_in frontend_translations('account_note.placeholder'), with: note_text
|
|
|
|
|
|
|
|
|
|
|
|
# This is a bit awkward since there is no button to save the change
|
|
|
|
# This is a bit awkward since there is no button to save the change
|
|
|
|
|