def METHOD_NAME(
    staff_api_client, webhook, permission_manage_apps
):
    # given
    webhook.events.all().delete()
    webhook.events.create(event_type=WebhookEventTypeAsyncEnum.ORDER_CREATED.value)
    webhook.events.create(
        event_type=WebhookEventTypeSyncEnum.PAYMENT_LIST_GATEWAYS.value
    )
    webhook_id = graphene.Node.to_global_id("Webhook", webhook.pk)
    variables = {"id": webhook_id}
    staff_api_client.user.user_permissions.add(permission_manage_apps)
    # when
    response = staff_api_client.post_graphql(QUERY_WEBHOOK, variables=variables)
    # then
    content = get_graphql_content(response)
    webhook_response = content["data"]["webhook"]
    assert (
        webhook_response["asyncEvents"][0]["eventType"]
        == WebhookEventTypeAsyncEnum.ORDER_CREATED.name
    )
    assert (
        webhook_response["syncEvents"][0]["eventType"]
        == WebhookEventTypeSyncEnum.PAYMENT_LIST_GATEWAYS.name
    )