2023-08-20 12:42:47 +03:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
|
|
RSpec.describe 'Personalization' do
|
|
|
|
|
let!(:account) { create(:account) }
|
|
|
|
|
let!(:user) { create(:user, account:) }
|
|
|
|
|
|
|
|
|
|
before do
|
|
|
|
|
sign_in(user)
|
|
|
|
|
visit settings_personalization_path
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'shows the personalization page' do
|
|
|
|
|
expect(page).to have_content('Email Templates')
|
|
|
|
|
expect(page).to have_content('Signature Request Email')
|
2024-06-21 14:05:23 +03:00
|
|
|
expect(page).to have_content('Completed Notification Email')
|
2023-08-20 12:42:47 +03:00
|
|
|
expect(page).to have_content('Documents Copy Email')
|
|
|
|
|
expect(page).to have_content('Company Logo')
|
|
|
|
|
end
|
|
|
|
|
end
|