From 62fe1da416dfe4b50c2f4f54e08b228150e9612c Mon Sep 17 00:00:00 2001 From: Matthew Rider Date: Wed, 20 Nov 2024 20:48:24 +0100 Subject: [PATCH] Add spec and display more info message on show page --- app/dashboards/organization_dashboard.rb | 1 + spec/system/admin/organizations_spec.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/dashboards/organization_dashboard.rb b/app/dashboards/organization_dashboard.rb index df0e89255..35d5d626b 100644 --- a/app/dashboards/organization_dashboard.rb +++ b/app/dashboards/organization_dashboard.rb @@ -50,6 +50,7 @@ class OrganizationDashboard < Administrate::BaseDashboard created_at updated_at upgraded_business_plan_at + whats_app_more_info_message ].freeze FORM_ATTRIBUTES_EDIT = %i[ diff --git a/spec/system/admin/organizations_spec.rb b/spec/system/admin/organizations_spec.rb index fb249bc8f..3bced946b 100644 --- a/spec/system/admin/organizations_spec.rb +++ b/spec/system/admin/organizations_spec.rb @@ -12,10 +12,12 @@ click_on 'Edit' fill_in 'Name', with: 'Real name' + fill_in 'Whats app more info message', with: 'More info. Unsubscribe?' click_on 'Update Organization' expect(page).to have_text('Organization was successfully updated.') expect(page).to have_text('Show Real name') + expect(page).to have_content('More info. Unsubscribe?') end end end