🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/pingcap-incubator/tidb-dashboard/ui

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/pingcap-incubator/tidb-dashboard/ui

v0.0.0-20220331105802-5ac69661755c
Source
Go
Version published
Created
Source

E2E Test

Since there are some features is different from version to version, we have make test_e2e_compat_features and make test_e2e_common_features to test features compatibility in different versions and common features in all versions, respectively.

Install Cypress

The Cypress has been added to package.json, so just run yarn to install it. We use Cypress@8.5.0 here since the version>8.5.0 has an unstable server connection error, the related issue can be referred here.

Run Test

Prerequisite: TiDB Dashboard server has to be started before run cypress test.

Open Test Runner to Run Test Locally

Test E2E with FEATURE_VERSION >= 5.3.0

# start frontend server
cd ui && yarn start
# start backend server
make dev && make run
# open cypress test runner
cd ui && yarn open:cypress

Test E2E with FEATURE_VERSION < 5.3.0

# start frontend server
cd ui && yarn start
# start backend server
make dev && make run FEATURE_VERSION=5.0.0
# open cypress test runner
cd ui && yarn open:cypress --env FEATURE_VERSION=5.0.0

Run test by choosing test file under /integration on cypress test runner, cypress will open a broswer to run e2e test.

Run on CI

# start frontend server
make ui
# start backend server
UI=1 make && make run FEATURE_VERSION=${FEATURE_VERSION}
# run e2e_compat_features and e2e_common_features tests
make test_e2e FEATURE_VERSION=${FEATURE_VERSION}

FAQs

Package last updated on 31 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts