Skip to content

Commit

Permalink
fixup! ui: reintroduce end-to-end UI tests with cypress
Browse files Browse the repository at this point in the history
fix imports in teamcity scripts
  • Loading branch information
sjbarag committed Aug 1, 2022
1 parent a9d0635 commit 046d776
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions build/teamcity/cockroach/ci/tests/ui_e2e_test_all.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail

source "$(dirname "${0}")/teamcity-support.sh"
source "./ui_e2e_test_impl.sh"
build="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))"
# for tc_prepare, tc_start_block, and friends
source "$build/teamcity-support.sh"
# for build_docker_image and run_tests
source "$build/teamcity/cockroach/ci/tests/ui_e2e_test_impl.sh"

tc_prepare

Expand Down
7 changes: 5 additions & 2 deletions build/teamcity/cockroach/ci/tests/ui_e2e_test_health.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail

source "$(dirname "${0}")/teamcity-support.sh"
source "./ui_e2e_test_impl.sh"
build="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))"
# for tc_prepare, tc_start_block, and friends
source "$build/teamcity-support.sh"
# for build_docker_image and run_tests
source "$build/teamcity/cockroach/ci/tests/ui_e2e_test_impl.sh"

tc_prepare

Expand Down
2 changes: 1 addition & 1 deletion build/teamcity/cockroach/ci/tests/ui_e2e_test_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function build_docker_image() {

function run_tests() {
SPEC_ARG=""
if [ "health" = "${$1:='EMPTY'}" ]; then
if [ "health" = "${1:-'EMPTY'}" ]; then
SPEC_ARG="--spec 'cypress/e2e/health-check/**'"
fi

Expand Down

0 comments on commit 046d776

Please sign in to comment.