Commit graph

2341 commits

Author SHA1 Message Date
Spencer
d16ff7ab73
[6.0] [CI] Produce junit test reports (#15281) (#15441)
* [mocha] use custom reporter for legible results in jenkins

* [jest] use custom result processor for legible results in jenkins

* [karma] enable junit output on CI

* [mocha/junitReporter] accept rootDirectory as configuration

* [jest/reporter] use reporters option added in jest 20

* [toolingLog] remove black/white specific colors

* [dev/mocha/junit] no reason for junit to be a "reporter"

* typos

* [dev/mocha/junit] use else if

* [karma/junit] use string#replace for explicitness

* [junit] use test file path as "classname"

* [ftr/mocha] no longer a "console" specific reporter
2017-12-05 18:31:11 -07:00
Matt Bargar
620cce3583
Solidify context app filter test (#15203) (#15401)
* Solidify context filter test
2017-12-05 11:33:41 -05:00
Spencer
28e0dfd03e
[6.0] [dev/ci_setup] generalize jenkins_setup script for other CI environments (#15178) (#15304)
* [dev/ci_setup] generalize jenkins_setup script for other CI environments

* [dev/ci_setup] accept more general `CACHE_DIR` env arg

* [dev/ci_setup] node.js install might not be invalid
2017-11-30 10:59:35 -07:00
Peter Pisljar
f781d8c2e8
fixing field formatters for gauge (#15145) (#15244)
* fixing field formatters for gauge
2017-11-29 16:09:57 +01:00
Tim Roes
0498c737cc
Fix Kibana crashing when resizing a tag cloud too small (#15001) (#15091)
* Don't allow d3-cloud to run on 0 size, fix #14833

* Add test that validates correct resizing
2017-11-28 10:14:15 +01:00
Peter Pisljar
190c626eb0
removing failing tilemap tests (#15048) (#15151) 2017-11-24 19:25:47 +01:00
Spencer
342a494865
[6.0] [dashboard/functionalTests] stabilize initialization ordering (#15031) (#15071) 2017-11-20 19:57:00 -07:00
Tim Roes
e832d062ab
Fix issue, where tags are vanishing after double resize (#14822) (#14953)
* Fix issue, where tags vanishing after resizing

* Also fix rawText in debug log
2017-11-15 09:08:19 +01:00
Jonathan Budzenski
8982892dbd
[6.0] [ci] Build docs (#14869)
* [ci] Build docs (#14130)

* [ci] Build docs

* fix context

* remove docs task from jenkins:unit

* [jenkins] Add docs script (#14769)

* [jenkins] Add docs script

* remove xvfb
2017-11-14 11:18:13 -06:00
Tyler Smalley
cee0fc045c Removes index.mapper.dynamic from test fixture (#14930)
This was removed in ES 6.0+

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-11-14 07:26:47 -08:00
Thomas Neirynck
f8bc449f5a
add more regionmaps tests (#14735) (#14794) 2017-11-09 14:45:58 -05:00
Chris Roberson
6ef803b34b [Management] Handle saved search import better (#14625)
* Handle saved search import better

* Add functional test

* Better comments
2017-10-26 18:55:33 -07:00
Chris Cowan
8a5fce43ac [TSVB] Fix bugs with the new split gauge/metric behavior (#13823)
* Adding a check to make sure everything is available to render

* Adding some safety

* Fixing a bug with the label

* Adding an additional sleep to wait for the new data to arrive.
2017-10-26 15:50:07 -07:00
Thomas Neirynck
7f79a1f144 Re-enable the tilemap test (#14532) (#14539)
Enables the tile-map test. this was disabled due to CORS-issues on the server end. These are now resolved.

This reverts commit e7fb1b0d8f.
2017-10-25 14:51:55 -04:00
Stacey Gammon
b9cf92dbf8 Comment out tile map tests to get the build passing again (#14519) 2017-10-23 17:50:30 -04:00
Kim Joar Bekkelund
7adf209ff4 Use Boom.boomify instead of deprecated Boom.wrap (#14325) (#14438) 2017-10-13 11:42:21 +02:00
Court Ewing
a3123b917a test: add missing saved_objects fixtures
In ae1b1e4fd5 a change was backported that
relied on this fixture, but this fixture didn't exist in 6.0.
2017-10-11 14:15:08 -04:00
Court Ewing
a7fbce659e test: move es proxy tests to api_integration (#14406)
Integration tests should go into the corresponding directory under
`test` and should use the appropriate testing framework that is designed
for long-running tests like those. Tests under __tests__ directories
should be fast-running unit tests only.
2017-10-11 13:59:54 -04:00
Court Ewing
ae1b1e4fd5 test: move url shortener tests to api_integration (#14411)
Integration tests should go into the corresponding directory under
test and should use the appropriate testing framework that is designed
for long-running tests like those. Tests under tests directories
should be fast-running unit tests only.
2017-10-11 13:58:26 -04:00
Kim Joar Bekkelund
e080851ea7 Use Object spread instead of Object.assign where it makes sense (#13903) (#14399)
* Prefer Object spread

* Add eslint rules for Object spread

* no slice
2017-10-10 16:06:44 +02:00
Chris Roberson
0a0ca43fc4 [Management] Allows for imports to select existing index (#14137) (#14321) 2017-10-04 23:06:56 -07:00
Nathan Reese
cbe69ab156 [6.0] apply field formatter to tag cloud (#14304)
* apply field formatter to tag cloud (#14230)

* apply field formatter to tag cloud

* use unformatted value for filter creation

* add removeFilter for functional tests
2017-10-04 14:31:44 -06:00
Kim Joar Bekkelund
60dc602c91 [index patterns] Don't attempt to wrap Boom errors (#14253) (#14264) 2017-10-04 18:59:32 +02:00
Thomas Neirynck
4c2fa8c189 Allow panning beyond dateline (#13955) (#14039) 2017-09-26 18:15:07 -04:00
Jonathan Budzenski
6e2d8a121a
[functional tests] Remove default screenshots (#14122)
* [functional tests] Remove default screenshots

* Remove baseline screenshots
2017-09-26 08:41:31 -05:00
Spencer
4ff36209aa create babel-preset and babel-register modules (#13973)
* [babel] create babel-preset and babel-register modules

* [babel-preset] add comments to babel-preset-env.target choices

* [babel-preset] use more normal BUILT_WITH_BABEL signal

* [babel-register] extended comment about filtering ./src in dist

* [babel-preset] stage of class properties has changed, sorta

(cherry picked from commit 48d35f81fd)
2017-09-19 17:45:08 -07:00
Stacey Gammon
8c77035b14 Allow custom timeouts on click (#14042) (#14056) 2017-09-19 12:43:36 -04:00
Rashmi Kulkarni
c89bb84e4b added a small sleep 2017-09-18 11:44:36 -07:00
Rashmi Kulkarni
a2f97cc1f0 added a small sleep 2017-09-18 11:27:14 -07:00
Rashmi Kulkarni
bcfb14a2dc [6.0]fix create_index_pattern_method to handle no timefields (#13852) 2017-09-18 10:15:14 -07:00
Stacey Gammon
2f1d96dbe5 fix wrapped retry error. This was copied code from 6.x, which didn't have the back ported version (#13967) (#13979) 2017-09-13 16:30:33 -04:00
Brandon Kobel
8f93c28288 Removing mapper.dynamic setting from the esArchiver mappings (#13970)
index.mapper.dynamic should not be used for 6.0+ indices, so this commit
removes it from the esArchiver mappings.json for kibana

Related elastic/elasticsearch#25734
2017-09-13 07:16:06 -04:00
Stacey Gammon
eab5319385 Avoid a wrapped retry and use exists instead of find, which will take up all the time allotted for the retry if it fails once (#13467) (#13966) 2017-09-12 19:12:23 -04:00
Stacey Gammon
86c196df5b Investigate 6.0 flaky tile map test (#13942) (#13954) 2017-09-12 16:08:31 -04:00
Lukas Olson
c2179e1f03 Fix "is one of" filter editor (#13771)
* Keep params so phrases editor works after closing and opening

* Add functional test
2017-09-07 08:49:43 -07:00
Stacey Gammon
e278ee2a74 Fix map updates not propagating to the dashboard (#13589) (#13884)
* 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 10:23:49 -04:00
Stacey Gammon
503d92043e Investigate flaky add new visualization link test (#13755) (#13777) 2017-08-31 09:47:19 -04:00
Tim Roes
b296d869dd Improve accessibility of the visualize editor (#13780)
* Use aria-expanded and better labels for agg collapsables

* Fix all agg options collapsables, fix #12892

* Label all vis editor inputs correctly, fix #11859

* Fix broken functional test
2017-08-31 11:46:58 +02:00
Peter Pisljar
10b9a6b1c7 visual builder should set vis.initialized when ready (#13779)
* tsvb needs to set vis.initialized

* adding visual builder integration test
2017-08-31 08:58:39 +02:00
Lukas Olson
043477e0b0 Re-enable filter editor suggestions (#13376)
* Re-enable filter editor suggestions

* Use search instead of include

* Escape query

* Show spinner

* Use include rather than search

* Add additional regex and explanation for parameters

* Add suggestions API test

* Make sure test actually runs

* Use send instead of query

* Fix suggestions API test
2017-08-25 16:44:47 -07:00
Nathan Reese
3ed4c748ce Upgrade kibana to leaflet 1.x (#12367) (#13669)
* upgrade leaflet modules to 1.x latest

* fix css for leaflet controls

* update draw options so it is easier to see polygon when drawing

* fix chrome touch issues with closing polygon in leaflet draw

* use canvas renderer

* use leaflet-responsive-popup to avoid tooltip cutoff

* remove radius configuration from leaflet heatmap

* make blur a factor of radius. Set maxZoom to map zoom since new values are calculated per precision

* use _.get to avoid error, cannot read property of undefined

* add cluster size slider

* experiments with image differences

* onload not onLoad

* use canvas dimensions

* compare map canvas to stored PNG of map canvas

* remove pixelmatch from project dependecies

* fix broken test - rounding error

* add expected image tests for geohash layers shaded circles and geohash grids

* bump z-index of vis-spy

* update functional test expected data

* update to leaflet 1.2.0

* revert to leaflet 1.0.3 and update expected data set for map functional tests

* test geohash_layer heatmap in unit test

* update region_map functional test since it can not longer pluck map vectors from DOM

* update documentation
2017-08-23 11:29:18 -06:00
Nathan Reese
504af4942e Replace "marked" with "markdown-it" (#13623) (#13666)
* add markdown functional test

* update markdown vis to use markdown-it

* migrate markdown angular filter to markdown-it

* place other uses of marked and remove dependency

* update breaking changes documenation and set linkify to true
2017-08-23 09:22:33 -06:00
spalger
91359949f1 remove spammy console.log()
(cherry picked from commit 8cd269678a)
2017-08-16 19:33:05 -07:00
Spencer
70608dcaf1 [npm] move personal forks into elastic org (#13410)
(cherry picked from commit 7e16d19249)
2017-08-09 12:39:27 -07:00
Spencer
1ba2c3fb6d [fix/UiSettings] ignore certain errors (#13079)
* [SavedObjectClient] emit detectable errors

* [uiSettingsService] consume new SavedObjectsClient errors

* [SavedObjectsClient] expose errorTypeHelpers as such

* [elasticsearch/tests] recreate error for each test

* [http] wait for elasticsearch plugin to be ready

* [shortUrl/tests] ensure that create request responds with 200

* [shortUrl] use errorTypeHelpers to filter errors

* [uiSettings/savedObjectsClientStub] stub errorTypeHelpers

* [SavedObjectsClient/errors] expose error module so tests can make errors

* [shortUrl/tests] use actual SavedObjectsClient errors

* [uiSettings/savedObjectsClientStub] use actual errors lib

* [SavedObjectsClient] use decorate instead of "wrap"

* [server/routes/uiSettings] refactor routes to forward Boom errors from uiSettings

* [uiSettings] colocate routes and service

* [testUtils/esTestCluster] use more standard api style

* [testUtils/es] add createCallCluster util

* [testUtils/esTestCluster] add getters for client/callCluster

* [es/healthcheck] ensure that healtcheck stops when server is stopped

* [uiSettings/routes] add param/payload validation

* [uiSettings/routes] add tests that verify error behaviors

(cherry picked from commit 8a64872ecb)
2017-08-08 17:57:22 -07:00
Matt Bargar
89df1620f9 Make filter pills keyboard accessible (#13331) (#13393)
Fixes #12639

It's now possible to tab to each filter's actions and interact with them via the keyboard.

In order to get the actions to show/hide on both mouse hover and action focus I had to create a new filter-pill component that could manage a bit of state to track whether the user was interacting with a given pill or not.
2017-08-08 17:03:26 -04:00
Stacey Gammon
0cbd62c2fe Use find service instead of remote (#13296) (#13388)
* Use find service instead of remote which doesn't have built in safety checks for stale elements

* use data-test-subj instead of id

* add missing function and awaits

* Did not realize WebElements could find descendants

Added some extra functionality for this in find and testSubjects
service, and using in the one place it’s required.
2017-08-08 13:27:03 -04:00
Stacey Gammon
0829d4c5df Fix full screen toggle button when panel is expanded (#13320) (#13363)
* Add failing tests

* Fix style issues with full screen toggle
2017-08-07 13:50:12 -04:00
Spencer
19f9964206 Add some testSubject helpers (#13305)
* [testSubjects] add getVisibleTextAll() helper

* [testSubjects] add isSelected() and isSelectedAll() helpers

* [testSubjects/setValue] support wrappers around inputs

* [testSubjects] add isEnabled() helper

* fix typo

(cherry picked from commit 8ee85f8fed)
(cherry picked from commit 679d8ad738)
2017-08-04 18:50:05 -07:00
Lukas Olson
e5b6450423 Use ui-select for agg selector (#13292)
* Use ui-select for agg selector

* Fix functional tests

* Fix functional tests

* Fix test

* Fix visualize page object

* Use sortPrefixFirst in agg selector

* Fix unit tests

* Fix unit test

* Use not(.ng-hide) rather than last-child
2017-08-03 15:27:37 -07:00