pipelines/test/frontend-integration-test
Joe Li 443a67438a
test(frontend): Improve v1 frontend-integration-test (#9811)
* test: access specific field via "id".

* test: access specific field via "id".

* update snapshots.

* Add test to validata description changes.

* Change id def for input tag.

* Skip unit tests

* Add unit tests back and change id

* Add a helper for clear default value in input field.
Remove unnecessary 'tab' command

* Add comment to explain the parameter name for tests
Remove default value for runName before typing new value
2023-08-08 21:16:33 +00:00
..
selenium-standalone-chrome-gcloud-nodejs.Docker test: Update frontend-integration-test image (#9028) 2023-03-23 00:29:20 +00:00
.dockerignore Initial commit of the kubeflow/pipeline project. 2018-11-02 14:02:31 -07:00
Dockerfile test: Update frontend-integration-test image (#9028) 2023-03-23 00:29:20 +00:00
OWNERS Remove yebrahim from approvers/reviewers (#1787) 2019-08-09 12:22:52 -07:00
README.md feat(backend): Refactor apiserver, add Pipeline and other v2beta services (#8633) 2023-02-03 20:17:01 +00:00
helloworld.spec.js test(frontend): Improve v1 frontend-integration-test (#9811) 2023-08-08 21:16:33 +00:00
helloworld.yaml Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
package-lock.json test(frontend): upgrade frontend integration test dependencies and base image. (#8806) 2023-02-07 01:24:39 +00:00
package.json test(frontend): upgrade frontend integration test dependencies and base image. (#8806) 2023-02-07 01:24:39 +00:00
run_test.sh fix(test): Add frontend integration test manual run (#8767) 2023-01-31 06:49:30 +00:00
tensorboard-example.spec.js Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
tensorboard-example.yaml Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
wdio.conf.js test(frontend): upgrade frontend integration test dependencies and base image. (#8806) 2023-02-07 01:24:39 +00:00

README.md

Frontend integration test

This test gets triggered by the end-to-end testing workflows.

Local run

  1. Deploy KFP on a k8s cluster and enable port forwarding. Replace the default namespace kubeflow below if needed.

    POD=`kubectl get pods -n kubeflow -l app=ml-pipeline-ui -o jsonpath='{.items[0].metadata.name}'`
    kubectl port-forward -n kubeflow ${POD} 3000:3000 &
    
  2. Build the container with the tests:

    docker build . -t kfp-frontend-integration-test:local
    
  3. Run the test with enabled networking (this exposes your local networking stack to the testing container):

    docker run --net=host kfp-frontend-integration-test:local --remote-run true
    
  4. Once completed, you can kill the background process of port-forwarding:

    ps aux | grep '[k]ubectl port-forward'
    kill <PID>