it("sorts the dates ascending by keypress", async () => {
    history.push("?nr_dates=2")
    renderSettingsPanel()
    await userEvent.type(screen.getByText(/Ascending/), " ")
    expect(history.location.search).toBe("?nr_dates=2&date_order=ascending")