Skip to content

Admin can create a webhook without selecting the data to be contained in the webook payload #7089

@prinzab

Description

@prinzab

Bug description:
Admin can create a webhook without selecting the data from the checkboxes to be contained within the webhook payload

Steps to reproduce:

  1. Click Configuration > Integrations
  2. Click the Create client button
  3. Enter a name for the client
  4. Select Webhook as the type
  5. Leave the checkboxes for type of data for birth and death unselected
  6. Click the Create button
  7. Observe

Actual result:

  1. The Create button is active without selecting any data to be contained within the webhook payload
  2. The webhook is created without selecting any data to be contained within the webhook payload

Expected result:

  1. The Create button should be disabled if there is no selection of data (births / deaths) to be contained within the webhook payload
  2. The webhook should not be created without selecting any data to be contained within the webhook payload

Environment:
https://login.farajaland-qa.opencrvs.org/

Version:
v1.5.0

Screenshots
Screenshot 2024-05-31 at 19 37 34

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Backlog

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions