*** Settings ***
Documentation    Integration tests verifying automation_level removal
Library          Process
Library          OperatingSystem

*** Variables ***
${PYTHON}        python

*** Test Cases ***
Plan Use Rejects Automation Level Flag
    [Documentation]    Verify plan use --automation-level is no longer accepted
    ${result}=    Run Process    ${PYTHON}    -m    cleveragents    plan    use    --automation-level    manual    local/test
    ...    stderr=STDOUT
    Should Not Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    No such option

Plan Commands Work With Profile Only Flow
    [Documentation]    Verify plan lifecycle works with automation_profile only
    ${result}=    Run Process    ${PYTHON}    -c
    ...    from cleveragents.domain.models.core.plan import Plan; print('automation_profile only')
    ...    stderr=STDOUT
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    automation_profile only
