def METHOD_NAME(page, live_server, id_creator_data, settings):
    settings.DEBUG = True
    # We shouldn't have any elections
    assert Election.private_objects.count() == 0
    # Open the home page, click to add a new election
    page.goto(live_server.url)
    page.get_by_role("link", name="Add a new election").click()
    # Enter a date
    page.locator("#id_date-date_0").fill("5")
    page.locator("#id_date-date_1").fill("1")
    page.locator("#id_date-date_2").fill("2023")
    page.locator("#id_date-date_2").blur()
    page.get_by_role("button", name="Submit").click()
    # Select the election type
    page.get_by_text("Local elections").click()
    page.get_by_role("button", name="Submit").click()
    # Select the council
    page.get_by_text("Test 2 Council").click()
    page.get_by_role("button", name="Submit").click()
    # Mark all seats as contested
    page.get_by_role(
        "button", name="Mark all seats as contested (can't be undone)"
    ).click()
    page.get_by_role("button", name="Submit").click()
    # Create the IDs
    page.get_by_role("button", name="Create IDs").click()
    # We should have 4 elections
    assert Election.private_objects.count() == 4
    assert list(
        Election.private_objects.values_list("election_id", flat=True)
    ) == [
        "local.2023-01-05",
        "local.test2.2023-01-05",
        "local.test2.test-div.2023-01-05",
        "local.test2.test-div-2.2023-01-05",
    ]