From 94892e71687fab7d21843e892dac05e45ded3ee5 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Sat, 17 Feb 2024 01:41:39 +0530 Subject: [PATCH 1/3] chore: Fix flaky spec relying on unguaranteed order (#8956) --- .../api/v1/accounts/contacts_controller_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/controllers/api/v1/accounts/contacts_controller_spec.rb b/spec/controllers/api/v1/accounts/contacts_controller_spec.rb index ace9e8e03..e5e298747 100644 --- a/spec/controllers/api/v1/accounts/contacts_controller_spec.rb +++ b/spec/controllers/api/v1/accounts/contacts_controller_spec.rb @@ -50,8 +50,11 @@ RSpec.describe 'Contacts API', type: :request do expect(response).to have_http_status(:success) response_body = response.parsed_body - expect(response_body['payload'].first['email']).to eq(contact.email) - expect(response_body['payload'].first['contact_inboxes'].blank?).to be(true) + + contact_emails = response_body['payload'].pluck('email') + contact_inboxes = response_body['payload'].pluck('contact_inboxes').flatten.compact + expect(contact_emails).to include(contact.email) + expect(contact_inboxes).to eq([]) end it 'returns all contacts with company name desc order' do From 6eb06377ccd0a885a9e4a3f04615028f49209d4b Mon Sep 17 00:00:00 2001 From: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Date: Fri, 16 Feb 2024 12:19:08 -0800 Subject: [PATCH 2/3] feat: Add textarea component to use in forms (#8932) Co-authored-by: Pranav --- .../v3/components/Form/Textarea.vue | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 app/javascript/v3/components/Form/Textarea.vue diff --git a/app/javascript/v3/components/Form/Textarea.vue b/app/javascript/v3/components/Form/Textarea.vue new file mode 100644 index 000000000..e43c411f5 --- /dev/null +++ b/app/javascript/v3/components/Form/Textarea.vue @@ -0,0 +1,83 @@ +