Commit graph

1166 commits

Author SHA1 Message Date
Marco Vettorello
d5939c4af8 [Discover] fix histogram min interval (#53979)
- Fixes issues involving min intervals for leap years and DST
2020-01-08 20:41:24 -06:00
Dmitry Lemeshko
26ce6104a9
Code coverage setup on CI (#49003)
* running code coverage in CI

* apply review feedback

* add custom function to upload merged coverage reports

* fix artifacts upload without coverage

* add file extension to fix validation

* Check code_coverage is set

* run oss tests via grunt task

* review fixes

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-08 21:08:48 +01:00
Dmitry Lemeshko
a1176b0e4a
Functional tests: refactor visualize_page (#53845)
* add new POs and services

* split visualize_page

* refactor PO and tests

* lost changes

* more fixes

* fix tslint error

* refactor POs

* add vega_chart_page, refactor

* review fix

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-07 15:42:20 +01:00
Maja Grubic
5b2a188c43
[Dashboard] Empty screen redesign (#53681)
* Edit screen redesign

* Edit screen redesign

* Redesign view screen

* Redesign view screen

* Fixing type failure, and functional test

* Updating failing functional tests

* update dashboard empty styles

* i18n fix

* Updating failing snapshot

Co-authored-by: Ryan Keairns <rkeairns@chef.io>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-06 10:55:15 +00:00
Marco Vettorello
9d5603a298
Update dependency @elastic/charts to v16.0.2 (#52619) 2020-01-04 13:38:11 +01:00
Tim Sullivan
8c3145ea5c
[Test/Newsfeed] Re-enable test and add news item to be filtered (#53905) 2020-01-02 15:25:54 -07:00
Kevin Logan
fa6a801ebd
[Endpoint] add react router to endpoint app (#53808)
* add react router to endpoint app

* linting

* linting

* linting

* correct tests

* change history from hash to browser, add new test util

* remove default values in helper functions

* fix type check, use FunctionComponent as oppsed to FC

* use BrowserRouter component

* use BrowserRouter component lin

* add comments to test framework, change function name to include browserHistory

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-02 15:58:45 -05:00
Brian Seeders
9317f16c38
Skip failing test suite 2019-12-30 22:14:58 -05:00
Greg Thompson
e7076927d7
Upgrade EUI to v17.3.1 (#53655)
* eui to 17.3.0

* eui to 17.3.1

* TS updates

* snapshot updates

* update data-test-subj

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-23 09:49:35 -06:00
Joe Reuter
06d26f6b68
Enforce shimmed plugin boundaries (#52633) 2019-12-20 19:01:56 +01:00
Brian Seeders
d6e0e9a314
Revert "Merge branch 'savedExportImportTest'"
This reverts commit 97612ba44c, reversing
changes made to 60660fcd1e.
2019-12-20 10:34:14 -05:00
bhavyarm
97612ba44c Merge branch 'savedExportImportTest' 2019-12-20 10:21:03 -05:00
bhavyarm
33a51231a1 saved object test changes 2019-12-20 10:15:36 -05:00
Marta Bondyra
60660fcd1e
[Discover] Refactor discover index pattern selector to Lens `C… (#51973) 2019-12-20 14:55:06 +01:00
Maja Grubic
2b7307b5b6
[Dashboard] Fixing addVisualization func test (#53491)
* [Dashboard] Fixing addVisualization func test

* Remove unnecessary function argument
2019-12-19 17:18:17 +00:00
Dmitry Lemeshko
745188b378
Fix code coverage for functional tests (#53297)
* update build scripts to not set inline source-maps for code coverage run

* [ftr] browser console log processing cleanup

* get last coverage piece directly via webdriver

* more cleanup

* review feedback
2019-12-19 08:23:30 +01:00
Chris Roberson
5ec3b03a67
[Tests] Add a helper to detect if functional tests are running against cloud (#51817)
* Add a helper to detect if functional tests are running against cloud

* PR feedback

* Clean up comment

* New eslint rules applied
2019-12-16 13:18:13 -05:00
bhavyarm
3110ddf2d0 test updates 2019-12-16 11:42:17 -05:00
bhavyarm
96032608e8 Merge branch 'master' into savedExportImportTest 2019-12-16 10:26:00 -05:00
bhavyarm
fdf3ed97d5 data files for saved objects 2019-12-16 10:15:17 -05:00
spalger
8e9a8a84dc autofix all violations 2019-12-13 23:17:13 -07:00
bhavyarm
bca17fcab0 Merge branch 'master' into savedExportImportTest 2019-12-13 12:20:00 -05:00
spalger
5fa9b1f0cc skip flaky suite (#48236) 2019-12-12 17:10:55 -07:00
bhavyarm
fb04abefab saved objects json 2019-12-12 18:12:22 -05:00
bhavyarm
8a7ce2031b Merge branch 'master' into savedExportImportTest 2019-12-12 16:14:17 -05:00
bhavyarm
717b82c903 saved objects import test 2019-12-12 13:31:22 -05:00
Maja Grubic
c5bf708c55
[Dashboard] Add visualization from dasbhoard empty screen (#52670)
* [Dashboard] Add visualization from dasbhoard empty screen

* Fixing linting errors

* Fixing i18n error

* Fixing unit test that was causing typecheck failure
2019-12-12 16:07:25 +00:00
Joe Reuter
860be3c3eb
Stabilize dashboard save modal functional test (#52761) 2019-12-12 13:36:14 +01:00
Spencer
a25bf49eb8
Add failure screenshot links to JUnit failures (#52449) 2019-12-11 09:42:43 -07:00
Maja Grubic
717e40c444
Move DashboardEmptyScreen inside DashboardViewport (#51939)
* Prototyping adding Visualization to Dashboard

* i18n fixes

* Remvoing dashboard empty screen directive

* Updating test for empty dashboard screen

* Removing unused state variable

* Adding a test for DashboardViewPort

* i18n & minor fixes

* Fixing fullscreen mode view

* Fixing failing functional test (hopefully)

* Minor style fix

* Fixing EUI text, rendering empty screen OR the panels

* Fixing empty screen in fullscreen mode

* Update snapshot

* Trying to render empty screen from Angular controller

* refactor: 💡 don't pass renderEmpty through inputs

And make sure isEmptyState is not stale.

* Fixing tests after Vadim's commit

* Removing unnecessary isEmptyStateProps

* Skipping failing test

* Removing unnecessary en.json file

* Re-adding emptyState, reintroducing functional test

* Fixing ja-JP file

* Undoing my thing to the functional test
2019-12-10 15:05:05 +00:00
Spencer
6ea1b2ccee
[ftr/lifecycle] refactor to be typesafe (#52453)
* [ftr/lifecycle] refactor to be typesafe

* update test fixture
2019-12-09 18:46:45 -07:00
Matt Bargar
77dca06253
Support nested fields in existing filter types (#49537)
* Add automatic support for nested fields in existing filter types

* Index pattern could be undefined

* add test for handleNestedFilter function

* remove console.log

* add tests for all "getFilterField" functions

* update migrateFilters to work on full filter objects so that it doesn't
have to worry about queries that have been wrapped with `nested`

* add test to ensure fromFilters auto wraps filters on nested fields

* Add smoke test for nested filter and move filter editor tests into
their own suite for easier running and debugging

* fix bad type change

* dedupe filterToQuery logic

* fix helper that wasn't doing what it said it did

* Convert test from pre-merge to jest

* Use new time range style
2019-12-09 14:16:15 -05:00
Anton Dosov
b66af16153
fix data-shared-items-container on visualise page (#52370)
Addresses #52109 (comment)

Should fix #51309,
Regression was introduced in: #46910
2019-12-07 16:50:33 +01:00
Matt Bargar
3368ce096c
Preserve currently loaded Saved Query in Discover when page reloads (#52323)
* Fix import

* Add test that would have failed with previous bug
2019-12-06 13:04:26 -05:00
Dmitry Lemeshko
9f024b8067
do not use stdoutsocket for console logs on Windows (#52208) 2019-12-05 18:42:04 +01:00
spalger
bd41b83c18 skip flaky suite (#40670) 2019-12-04 11:25:13 -07:00
Dmitry Lemeshko
57865e43ad
Functional tests: elastic chart provider (#52085)
* adding elastic-chart service

* update visual test
2019-12-04 15:24:42 +01:00
Anton Dosov
c887c42cbf
[Reporting/Visualisation] DOM attributes for reporting integration are missing (#52109) 2019-12-04 13:11:50 +01:00
Anton Dosov
217608d11e
[State Management] Typescripify, jestify, simplify state_hashing and state_storage (#51835)
The hashUrl and unhashUrl functions no longer rely on states being provided as an argument, therefore getUnhashableStates/getUnhashableStatesProvider have been removed.
2019-12-04 12:36:03 +01:00
Spencer
4e5bfc7efa
[ftr/visualize] continue to wait for save completion by default (#51413)
* [ftr/visualize] continue to wait for save completion by default

* capture the toast message when saving the visualization so that it can be inspected if desired

* fix/flaky visualize listing tests (#33)

* move waitForSaveModalToClose from dashboard_page to common_page

* call common_page.waitForSaveModalToClose()

* remove extra wait for toast

* fix trailing spaces

* improve error message of failing test
2019-12-03 12:35:39 -07:00
Tim Roes
05047c39c6
[TSVB] Fix TSVB not saving correctly (#51887)
* Fix TSVB not saving correctly

* Address review

* Add functional test
2019-12-02 13:08:52 +01:00
Nick Partridge
3ed18b4e06
De-angularize visLegend (#50613)
* deangularize visLegend
* update vislib controller to mount react legend directly
* convert legend components to eui
* Position popover based on legend position
* Styles cleanup including removing of unused/unnecessary styles
2019-11-27 20:07:27 -06:00
Anton Dosov
80879368a1
Typescriptify and shim kbn_tp_run_pipeline test plugin (#50645)
* Typscriptify and shim kbn_tp_run_pipeline test plugin

* fix imports to not re-export ‘legacy’ from root of plugin
2019-11-26 14:22:34 +01:00
spalger
90db0b8101 disable flaky suite (#40912) 2019-11-21 18:28:50 -07:00
Greg Thompson
7cbb072554
Upgrade EUI to 16.0.0 (#50779)
* eui to 16.0.0

* type defs

* card click

* snapshot updates

* time format test updates

* ts return

* integration fix

* async

* more time format fixes

* more time format fixes

* test updates

* add uisettings dateformat timepicker test

* after method to clear setting
2019-11-20 17:02:04 -06:00
Spencer
1814957edc
[FTR] expose new es client service (#51066)
* always extend all common config and expose new es client service

* replace `es` service with `legacyEs`
2019-11-20 08:56:23 -07:00
Joe Reuter
9cb37a122b
Kibana app migration: Shim dashboard (#48913) 2019-11-20 09:44:12 +01:00
Dmitry Lemeshko
295f1dfcb1
[services/remote] wrap up clearing browser storage with try/catch (#50840)
* [services/remote] wrap up clearing storage with try/catch

* improve error handling on clearing storage

* apply awesome idea

* fix exception message
2019-11-19 23:39:08 +01:00
Dmitry Lemeshko
6bc43bb9fd
[page_objects/common_page] convert to ts (#50771)
* [page_objects/common_page] convert to ts

* fix lint errors

* descrease navigation timeouts

* use template literal for log messages
2019-11-18 20:08:22 +01:00
Robert Oskamp
39aeaaa19f
Add retry to find.existsByDisplayedByCssSelector (#48734)
This PR fixes timeout handling in `find.existsByDisplayedByCssSelector` for elements that are found but (not yet) displayed.
2019-11-18 09:37:31 +01:00