impress-org / give-double-the-donation

Integration with Double-the-Donation
GNU General Public License v3.0
0 stars 0 forks source link

Form settings should remove the feature from the form when disabled #4

Closed mathetos closed 3 years ago

mathetos commented 3 years ago

User Story

As a GiveWP admin, when I disable the "Company Matching" feature from a form, I expect it to not show on the front-end form after saving my form.

Details

Currently, if you enable the feature on a form, save the form, view the form, it all works as intend.

But if you then disable the Company Matching feature after having saved it as enabled, the Company Matching option still appears on the form.

Expected Behavior

I expect that when the feature is disabled in the form, it doesn't appear on the front-end of the form.

Steps to Reproduce

  1. Enable the feature on a form and save it. Confirm it shows on the form as intended.
  2. Disable the feature on that same form and save.
  3. View the form and confirm that the Company Matching field still appears on the form.

Acceptance Criteria