Webhooks

Preflight supports the use of webhooks to run tests, and they can be run from any platform that calls a URL. For example, you can set up Preflight Webhooks to run a test based on a Github commit.

By default, the webhook will run all the tests, but you can customize it to run a specific group of tests, which browsers and screen sizes to use, and the environment to run the tests on. The customizations are defined in the URL, and can be edited directly in the URL if you want to change the customizations.

To Set Up Webhooks

  1. In the Navigation bar, select your profile icon.

  2. Click Account Settings > Webhooks.

  3. Enter the Webhook's name and click Create Webhook. Preflight creates a URL that you can call from your platform.

    1. To customize what will be tested, click Customize.

  4. Define whether you want to run:

    • All Tests.
    • A Group of tests, and select a group from the list.
  5. Define the Environment to run the test on. Either select one from the list or select Use Test Settings to use the environment(s) that were used to record the test(s). The Webhook URL field is updated to include your customizations.

  6. Click Save Webhook Configuration.