kibana/test/functional/apps/management
jasper 9a7e105ec8 Stabilize tests involving absolute timepicker (#10347)
Backports PR #10308

**Commit 1:**
Stabilize tests involving absolute timepicker

The asynchronous nature of angular's digest cycle and the page rendering
in the browser can lead to situations in which
`isGlobalLoadingIndicatorHidden()` returns true because the loading
triggered by the previous action has not yet started. In this case
subsequent actions incorrectly assume the loading has already been
completed. This is probably responsible for the flakiness described in #10302.

The newly introduced `waitUntilLoadingHasFinished` first waits for a
duration up to `defaultTimeout` for the loading indicator to appear
before waiting for it to be hidden again. In the best case this will
reduce the false positive rate of `setAbsoluteTimerange()`. In the worst
case the function will wait `defaultTimeout` longer than when just using
`isGlobalLoadingIndicatorHidden`.

fixes #10302

* Original sha: 345421bd63
* Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-02-13T15:05:50Z

**Commit 2:**
Use findTestSubject

* Original sha: 3a2f3fc9eb
* Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-02-13T16:02:08Z

**Commit 3:**
Replace all usages of isGlobalLoadingIndicatorHidden

* Original sha: 27ad2447a5
* Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-02-13T17:49:56Z

**Commit 4:**
Introduce timeout argument to findTestSubject

* Original sha: 60ab85a295
* Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-02-14T16:05:28Z
2017-02-14 20:34:18 +01:00
..
_creation_form_changes.js Backport eslint updates to 5.x (#10139) 2017-02-06 21:27:07 -07:00
_index_pattern_create_delete.js Backport eslint updates to 5.x (#10139) 2017-02-06 21:27:07 -07:00
_index_pattern_popularity.js Backport eslint updates to 5.x (#10139) 2017-02-06 21:27:07 -07:00
_index_pattern_results_sort.js Backport eslint updates to 5.x (#10139) 2017-02-06 21:27:07 -07:00
_initial_state.js Backport eslint updates to 5.x (#10139) 2017-02-06 21:27:07 -07:00
_kibana_settings.js 5.x backport #9242 New scripted field tests (#9700) 2017-01-02 16:45:45 -06:00
_scripted_fields.js Stabilize tests involving absolute timepicker (#10347) 2017-02-14 20:34:18 +01:00
index.js 5.x backport #9242 New scripted field tests (#9700) 2017-01-02 16:45:45 -06:00