{ const canvas = within(canvasElement); const toggles = within(canvasElement).getAllByRole("button"); await userEvent.click(toggles[1]); await userEvent.click(toggles[1]); await userEvent.click(toggles[2]); await userEvent.click(canvas.getAllByText("Object(2)")[0]); }} />