parameters:
- name: webView
  type: string
  default: "edge-chromium"
steps:
- task: CmdLine@2
  inputs:
    script: |
      echo Setting WebView Type: ${{ parameters.webView }}
      call npx office-addin-dev-settings webview manifest.xml ${{ parameters.webView }}
      call npx office-addin-dev-settings webview test/end-to-end/test-manifest.xml ${{ parameters.webView }}
      echo Running Tests
      npm run test
      echo Done running tests
  displayName: 'Run Tests'