kibana/test
Stacey Gammon d853fcae11 Fix map updates not propagating to the dashboard (#13589)
* Add failing tests

* Add fix by preventing uiState from being directly updated in visualization.

* Add test that would catch error caused by this PR in regards to filter agg

* Fix issue with uiState triggering dirty dashboard state by introducing temporary "sessionState" on a vis

* Click go after toggling the switch

* add more tests to ensure getRequestAggs functions as intented

* Go back to old zoom calculations. Update vis test data

I think because mapCollar is no longer saved in uiState, the save
recenters the data and we get slightly different data points from the
test data.  As far as my eye can tell, everything is working as
intended.

* fixes and tests

- incorporate the new init function which fixes the bug where we lose
map bounds data on a fresh save
- add a test that would have caught that
- adjust tests due to bug where map bounds is changing slightly.  File
another issue for that separately as it doesn’t actually affect the
users map experience.

* Fix tests

Tests relied on my original logic of defaulting to the saved zoom state
and not relying on uiState, so I went back to that logic.  Also found
another bug where mapZoom of 0 was being considered invalid, but it is
actually a valid zoom level.

* Since leaflet upgrade 'path.leaflet-clickable' can't be used to retrieve circles anymore

* Avoid stale element reference

I suspect because the page is changing, you have to keep fetching the
element afresh.  I don’t see this error on my local but saw it on
jenkins.

* remove spy select from PageObjects.visualize.getDataTableData

The function is used in the Data Table visualization where the spy pane
select doesn’t exist.
2017-09-07 08:43:19 -04:00
..
api_integration Re-enable filter editor suggestions (#13376) 2017-08-25 16:38:49 -07:00
common [fix/UiSettings] ignore certain errors (#13079) 2017-08-08 17:55:36 -07:00
dev_certs
functional Fix map updates not propagating to the dashboard (#13589) 2017-09-07 08:43:19 -04:00
scripts Revert "Switch to Yarn (#11637)" 2017-05-27 08:51:19 -04:00
kibana_test_server_url_parts.js Implement esTestCluster test util (#13099) 2017-07-28 09:47:41 -07:00
mocha.opts
mocha_setup.js Get rid of auto-release-sinon in favour of built-in sinon.sandbox functionality. (#12099) 2017-06-01 10:27:08 +02:00
shield.js Implement esTestCluster test util (#13099) 2017-07-28 09:47:41 -07:00