This is an automated email from the ASF dual-hosted git repository. diegopucci pushed a commit to branch chore/update-cypress-test-local in repository https://gitbox.apache.org/repos/asf/superset.git
commit 3eff09b375f75d0b1b1cc50dd31b540a0ba078c6 Author: geido <[email protected]> AuthorDate: Wed Jul 20 16:41:11 2022 +0300 Exclude applitools by default --- .github/workflows/bashlib.sh | 7 ++++++- superset-frontend/cypress-base/cypress.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bashlib.sh b/.github/workflows/bashlib.sh index ae10c342e8..1e98970972 100644 --- a/.github/workflows/bashlib.sh +++ b/.github/workflows/bashlib.sh @@ -220,14 +220,19 @@ eyes-storybook-dependencies() { } cypress-run-applitools() { + cd "$GITHUB_WORKSPACE/superset-frontend/cypress-base" + local flasklog="${HOME}/flask.log" local port=8081 + local cypress="./node_modules/.bin/cypress run" + local browser=${CYPRESS_BROWSER:-chrome} + export CYPRESS_BASE_URL="http://localhost:${port}" nohup flask run --no-debugger -p $port >"$flasklog" 2>&1 </dev/null & local flaskProcessId=$! - cypress-run "*/**/*.applitools.test.ts" + $cypress --spec "cypress/integration/*/**/*.applitools.test.ts" --browser "$browser" --headless --config ignoreTestFiles="[]" codecov -c -F "cypress" || true diff --git a/superset-frontend/cypress-base/cypress.json b/superset-frontend/cypress-base/cypress.json index f9729be1c3..6894714ba6 100644 --- a/superset-frontend/cypress-base/cypress.json +++ b/superset-frontend/cypress-base/cypress.json @@ -5,7 +5,7 @@ "numTestsKeptInMemory": 0, "experimentalFetchPolyfill": true, "requestTimeout": 10000, - "ignoreTestFiles": ["**/!(*.test.js|*.test.ts)"], + "ignoreTestFiles": ["**/!(*.test.js|*.test.ts)", "*.applitools.test.ts"], "video": false, "videoUploadOnPasses": false, "viewportWidth": 1280,
