"""Integration test for the first working workflow example."""

from __future__ import annotations

from examples.features.basic_flow.first_working_flow import run_workflow


def test_phase5_first_working_example_runs_end_to_end(primed_zenml) -> None:
    """Verify the first end-to-end example executes successfully."""
    result = run_workflow("renewable energy")
    assert "summary" in result.lower()
    assert "source notes on renewable energy" in result.lower()
