zulip/tools/ci/frontend
Priyank Patel dda7e938f4 puppeteer: Fix flake with compose box input.
There were a lots of flakes in CI recently because typeahead didn't
appear when Enter was pressed and real emails are not accepted as
valid inputs. To fix this we wait for typeahead to appear and then
click that instead of Enter. We also use delay option to type the
email (100ms delay between keypresses) since without we'd also get
flakes.

Re-enable puppeteer test in CI after this fix too.
2020-07-30 11:32:32 -07:00

38 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
source tools/ci/activate-venv
set -e
set -x
./tools/lint --groups=frontend --skip=gitlint # gitlint disabled because flaky
# Run the node tests first, since they're fast and deterministic
./tools/test-js-with-node --coverage
# Check the node fixtures (also fast)
./tools/check-node-fixtures
# Check capitalization of strings
./manage.py makemessages --locale en
PYTHONWARNINGS=ignore ./tools/check-capitalization --no-generate
PYTHONWARNINGS=ignore ./tools/check-frontend-i18n --no-generate
# Disabled because of the frequently flaky
# behaviour of it.
# General pattern of the flaky failure is
#
# FAIL "#zhome" never appeared in 5000ms
# type: uncaughtError
# file: /home/circleci/zulip/frontend_tests/casper_tests/04-compose.js
# error: "#zhome" never appeared in 5000ms
# stack: not provided
#
# ./tools/test-js-with-casper --xunit-export
./tools/test-js-with-puppeteer
# NB: Everything here should be in `tools/test-all`. If there's a
# reason not to run it there, it should be there as a comment
# explaining why.