consul/ui-v2/tests/helpers
John Cowen c8dfe43d29
ui: Default test latency to 0 (#8640)
During development a HTTP request will pause for 1 minute ONLY when an
?index is set. This gives a realistic emulation of blocking queries.

During testing we can change this latency when we are testing blocking
queries, which we do in numerous places.

A problem can arise during testing on a very slow machine.

If you are not testing blocking queries and therefore not set a latency
to test with, if the machine you are testing on is slow enough a normal
page can assert during a test, yet not tear down before a further
blocking query request is made. This blocking query then uses the default
latency which cause the page to hang for 1 minute, which in turn causes
the test to timeout.

This only seems to happen on a very slow system, but it does potentially
explain why we occasionally see the odd flakey test popping up.
2020-09-09 18:51:18 +01:00
..
.gitkeep ui: UI Release Merge (ui-staging merge) (#6527) 2019-09-30 14:47:49 +01:00
api.js ui: Test Coverage Reporting (#7027) 2020-05-12 17:13:50 +00:00
destroy-app.js
flash-message.js
get-nspace-runner.js ui: New Intention Form/List components (#8172) 2020-07-09 10:08:47 +01:00
measure.js UI: Repo layer integration tests (#4454) (#4563) 2018-08-29 10:00:15 +01:00
module-for-acceptance.js ui: Increases the pause between blocking queries to 2000ms (#5582) 2019-05-01 18:22:26 +00:00
normalizers.js ui: Support for Node Identities (#8137) 2020-06-23 09:59:43 +01:00
repo.js ui: UI Release Merge (ui-staging merge) (#6527) 2019-09-30 14:47:49 +01:00
set-cookies.js ui: Acceptance test improvements to prepare for more NS tests (#6980) 2020-01-24 12:26:28 +00:00
stub-super.js Looking into atob functionality, consequence of Value: null 2018-07-05 13:35:06 +01:00
type-to-url.js ui: New Intention Form/List components (#8172) 2020-07-09 10:08:47 +01:00
yadda-annotations.js ui: Default test latency to 0 (#8640) 2020-09-09 18:51:18 +01:00