async def METHOD_NAME() -> None:
    """Test that scheduling an animation works."""
    app = AnimApp()
    delay = 0.1
    async with app.run_test() as pilot:
        styles = app.query_one(Static).styles
        styles.background = "black"
        styles.animate("background", "white", delay=delay, duration=0)
        await pilot.pause(0.9 * delay)
        assert styles.background.rgb == (0, 0, 0)  # Still black
        await pilot.wait_for_scheduled_animations()
        assert styles.background.rgb == (255, 255, 255)