def METHOD_NAME(
    staff_api_client,
    permission_manage_products,
    variant,
):
    assert variant.is_preorder is False
    variant_id = graphene.Node.to_global_id("ProductVariant", variant.pk)
    response = staff_api_client.post_graphql(
        QUERY_VARIANT_DEACTIVATE_PREORDER,
        {"id": variant_id},
        permissions=[permission_manage_products],
    )
    content = get_graphql_content(response)
    error = content["data"]["productVariantPreorderDeactivate"]["errors"][0]
    assert error["field"] == "id"
    assert error["code"] == ProductErrorCode.INVALID.name