executor: html_e2e_project
input:
  base_url: ""
  config_file: "cypress/config/cypress.config.js"
  project_id: ""
  record_key: ""
  tag: "html_e2e_cloud"
steps:
- type: exec
  script: |
    make -C {{.html.pfappserver_dir}} test-project \
      PROJECT_ID={{.input.project_id}} \
      RECORD_KEY={{.input.record_key}} \
      BASE_URL={{.input.base_url}} \
      CONFIG_FILE={{.input.config_file}} \
      CONFIG="downloadsFolder={{.test_suite_results_dir}}/downloads,screenshotsFolder={{.test_suite_results_dir}}/screenshots,videosFolder={{.test_suite_results_dir}}/videos" \
      TAG="{{.input.tag}}" \
  # Info is only returned if assertion passes
  info:
  - "{{.result.systemout}}"
  # Assertion is meant to pass, otherwise info is truncated to caller.
  # Caller must have their own assertion(s).
  assertions:
  - result.systemout ShouldNotBeNil
# Output is renamed to avoid collisions
output:
  html_e2e_code: "{{.result.code}}"
  html_e2e_systemout: "{{.result.systemout}}"

