From 829fc6e5c5e06578bfe073405db8e254cd57418a Mon Sep 17 00:00:00 2001 From: Mantas Date: Mon, 13 Jul 2020 21:22:58 +0300 Subject: [PATCH] Maintenance: S/Mime Capybara tests performance improvement --- spec/system/ticket/zoom_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/system/ticket/zoom_spec.rb b/spec/system/ticket/zoom_spec.rb index bdf6ed0a0..a44dae985 100644 --- a/spec/system/ticket/zoom_spec.rb +++ b/spec/system/ticket/zoom_spec.rb @@ -542,13 +542,15 @@ RSpec.describe 'Ticket zoom', type: :system do end end - context 'replying' do + context 'replying', authenticated_as: :setup_and_authenticate do - before do + def setup_and_authenticate create(:ticket_article, ticket: ticket, from: customer.email) create(:smime_certificate, :with_private, fixture: system_email_address) create(:smime_certificate, fixture: sender_email_address) + + authenticate end it 'plain' do