Your question is Validate Test Steps Against Output. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given a string log_output and an array of strings expected_steps, write a function that returns True if every expected step appears in log_output in the same order, and False otherwise. Each expected step must appear as a substring after the previous matched step, which simulates a simple automated test case verifier.
def validate_test_case(log_output, expected_steps):