def METHOD_NAME(
    get_service_settings_page,
    service_one,
    service_fields,
    endpoint,
    index,
    text,
):
    button_url = url_for(endpoint, service_id=service_one["id"])
    service_one.update(service_fields)
    page = get_service_settings_page()
    link = page.select(".page-footer-delete-link a")[index]
    assert normalize_spaces(link.text) == text
    assert link["href"] == button_url