Commit graph

906 commits

Author SHA1 Message Date
Matthias Wilhelm
cd53b3e5c4
[Discover] Unskip context navigation test (#68490) (#68985) 2020-06-12 14:57:26 +02:00
Matthias Wilhelm
5d86c714b4
[Discover] Unskip context size tests (#68213) (#68369) 2020-06-05 17:44:52 +02:00
Matthias Wilhelm
3610e9ea4c
[Discover] Fix missing histogram time range update when query is refreshed (#67582) (#68102) 2020-06-04 11:11:45 +02:00
Matthias Wilhelm
ae69f51446
[7.7] Improve indexpattern without timefield functional test (#67031) (#67267) 2020-06-04 10:59:02 +02:00
Joe Reuter
54419a2ca4
[7.7] move role reset into the top level after clause (#66971) (#68054) 2020-06-03 16:30:15 +02:00
restrry
846ff4ace1 update styles 2020-05-22 11:46:32 +02:00
Daniil Suleiman
7a7c9f97c4
[Visualize] Bar chart: Show missing values on chart setting (#66375) (#67025)
* Show missing switch button

* Add functional tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/vis_type_vislib/public/components/options/point_series/point_series.tsx
#	test/functional/page_objects/visualize_chart_page.ts
#	test/functional/page_objects/visualize_editor_page.ts
2020-05-19 21:43:19 +03:00
Pierre Gayvallet
3cb39b3f42
[SOM] Preserve saved object references when saving the object (#66584) (#66845)
* create field for references and add comments

* add FTR test

* remove comments

* address comments

* use real reference in dataset and assert against it.
# Conflicts:
#	src/plugins/saved_objects_management/public/lib/create_field_list.test.ts
#	src/plugins/saved_objects_management/public/lib/create_field_list.ts
#	src/plugins/saved_objects_management/public/management_section/object_view/components/field.tsx
#	src/plugins/saved_objects_management/public/management_section/object_view/components/form.tsx
2020-05-17 08:01:57 +02:00
Anton Dosov
e8fcb4920e
Bugfix clear saved query crashes kibana on Discover in some cases (#63554) (#63628)
* actual hotfix
* add functional test
2020-04-15 15:11:41 -05:00
Matthias Wilhelm
103ef928bd
[Discover] Fix broken setting of bucketInterval (#62939) (#63547)
* Fix broken setting of bucketInterval, remove $watch

* Fix and adapt functional tests
2020-04-15 13:03:18 +02:00
Anton Dosov
9b0f80b1ac
Bugfix dashboard unpins filters (#62301) (#63322)
Fixes following cases:

Saving dashboard with pinned filter unpins it. Do not save pinned filters with dashboard see #62301 (comment)
When navigating with global filter to dashboard with same saved filter, filter becomes unpinned
When navigating from listing to dashboard with saved filter, back button didn't work

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-12 20:00:30 +02:00
Matthias Wilhelm
211d28aa3e
[Discover] Hide time picker when an indexpattern without timefield is selected (#62134) (#63107)
* Assign valid value whether the timepicker should be displayed

* Add functional tests
2020-04-09 17:27:28 +02:00
Daniil Suleiman
cee064b5e4
Fix flaky FT in field visualize for 7.7 (#62823) 2020-04-09 00:07:15 +03:00
Dmitry Lemeshko
12f91e37d6
FTR: Enable w3c for chromedriver (#62542) (#62808)
* enable w3c for chrome

* update maps tests

* update maps tests

* update common_page

* Revert "update maps tests"

This reverts commit 31f43fd678.

* revert changes to maps tests

* undo after removal

* update expect range to pass on Windows, unskip tests for Firefox

* print out value for discover brushing test

* log first timestamp

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-07 20:10:29 +03:00
Joe Reuter
c1e5e220a4
Vislib: Fix position calculation of ticks in non-horizontal axes (#62309) (#62605) 2020-04-06 16:58:29 +02:00
Liza Katz
b8a1c15e40
[BUG] Back navigation from surrounding documents doesn't work properly (#62350) (#62568)
* replace state for load more documents

* simpler solution

* simpler solution + functional test

* fix test

* disable flaky test
2020-04-06 13:40:50 +03:00
Anton Dosov
233e309343
[Drilldowns] Dashboard state fixes for drilldowns (#61457) (#62421)
1. Change logic around deciding wether to use time from url or from saved object. Previously code looked only into if _g is present in the url at all. And didn't consider edge case if time or refreshInterval is missing in _g

2. Fix initial syncing of time from savedobject causing redundant history record. _This changed caused order of _a and g params in url change. One test was affected by it because it relied on the order. I don't think it should be considered breaking as order app puts it's query params shouldn't matter.

3. Fix another race condition between state syncing with url and angular controller $destroy. Similar fix was done before in #57795, but this on covers case when we stay within dashboard app, but change dashboard

4. Fix initial panel state migration causing redundant browser history records

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-03 14:52:16 +02:00
Joe Reuter
a651b23d61
Make d3 place nicely with object values (#62004) (#62340) 2020-04-03 11:08:31 +02:00
Daniil Suleiman
e9855afdea
[Discover] Fix filters passing down to visualize (#61392) (#61574)
* Fix passing filters to visualize

* Add functional tests
2020-03-27 13:05:54 +03:00
Matthias Wilhelm
1381864f8d
[Discover] Fix ignoring uiSetting discover:searchOnPageLoad (#61393) (#61570)
* Add checks for changed query and update in $scope.updateQuery

* Add functional test by counting fetches
2020-03-27 10:31:16 +01:00
Daniil Suleiman
7f3e5e6afa
[Discover][Visualize] Fix visualizing a selected field in discover search (#61226) (#61407)
* Fix visualize a discover search

* Move deep clone into vis.ts

* Add functional tests

* Fix passing filters to visualize

* Revert fixing filters
2020-03-26 13:23:41 +03:00
Tyler Smalley
620b088f57 Temporarily disable tests caused by possible ES regression
https://github.com/elastic/kibana/issues/61366

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-03-25 15:38:01 -07:00
Lee Drengenberg
46ac1e6630
streamline indexPatternTitle usage (#60999) (#61158)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-24 22:51:46 +00:00
Lee Drengenberg
5a26a1b804
add relationship test on Saved Objects (#59968) (#60976)
* just a demo of function to return saved object table elements

* fix esArchive data, extend import objects test case for relationships

* improved data-test-subjs

* update snapshot for jest test

* unskip other half of the tests

* removed commented-out code

* use new findByTestSubject methods

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-24 09:07:28 -05:00
Devon Thomson
1faabde190
Dashboard/add panel flow (#59918) (#60995)
Added an emphasize prop to the top nav menu item and used it for a new 'Create new' button which redirects to the 'new visualization' modal.

Co-authored-by: Ryan Keairns <rkeairns@chef.io>

Co-authored-by: Ryan Keairns <rkeairns@chef.io>
2020-03-24 10:01:28 -04:00
Dmitry Lemeshko
4c7a447ffb
WebElementWrapper: add findByTestSubject/findAllByTestSubject to search with data-test-subj (#60568) (#60756)
* [web_element_wrapper] add find/findAll to search with data-test-subj

* fixes

* fix wrong function call

* review fixes

* simplify test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-23 18:09:55 -05:00
Wylie Conlon
fbe3637e84
Fix formatter on range aggregation (#58651) (#60920)
* Fix formatter on range aggregation

* Fix test that was using unformatted byte ranges

* Fix test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-23 13:22:37 -04:00
Chandler Prall
fa0c700c92
[7.x] Upgrade EUI to 21.0.1 (#60282) (#60809)
* Upgrade EUI to 21.0.1 (#60282)

* update to eui 21.0.1

* most changes needed for search bar ts changes

* Passing types

* snapshots

* jest tests

* Removed IQuery placeholder types

* Updated functional test to only look at table headers with content

* Moved 'filters' definition around in api docs

* Update types

* update snapshot

* typo

* Move DATA_FRAME_TASK_STATE enum to its own file to fix x-pack functional test config imports

* merge public api 'changes'

Co-authored-by: patrykkopycinski <patryk.kopycinski@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>

* unit test update

Co-authored-by: patrykkopycinski <patryk.kopycinski@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2020-03-20 23:09:36 -06:00
Pierre Gayvallet
6bfb623b33
[7.x] migrate saved objects management edition view to react/typescript/eui (#59490) (#60621)
* migrate saved objects management edition view to react/typescript/eui (#59490)

* migrate so management edition view to react

* fix bundle name + add forgotten data-test-subj

* add FTR tests for edition page

* EUIfy react components

* wrap form with EuiPanel + caps btns labels

* Wrapping whole view in page content panel and removing legacy classes

* improve delete confirmation modal

* update translations

* improve delete popin

* add unit test on view components

* remove kui classes & address comments

* extract createFieldList and add tests

* disable form submit during submition

Co-authored-by: cchaos <caroline.horn@elastic.co>

* update dataset and fix test description

Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-03-20 07:16:44 +01:00
Rashmi Kulkarni
d7bb13a311
[7.x] FTR configurable test users (#52431) (#60428)
* FTR configurable test users (#52431)

* initial implementation of configurable test users

* user superuser by default to match master

* referenced the configs in reporting and api integration

* setting the minimum number of default roles

* looking for x-pack tests with users and roles

* add testUserService in dashboard mode tests

* running only ciGroup7

* uncommenting - addign visualization

* re-enabling all CI groups to run on CI

* reinstating Jenkinsfile

* disable Test user for OIDC config

* improved logging and added Roles for OSS tests to get better info on the runs.

* disable test_user for auth tests

* don't fetch enabledPlugins when testuser disabled

* fix es-lint

* running oss tests with x-pack enabled

* [revertme] build default dist for oss tests

* updating NOTICE.txt file as it complained in the kibana intake tests

* changed to pick OSS builds

* trying a license change to trial

* switch back to xpack builds

* created a new sample data role and used it in homepage tests

* revert test/scripts/jenkins_ci_group.sh

* only refresh browser and wait for chrome if we are already on Kibana page

* fix large_string test to use minimum set of roles and privileges

* fix for date nanos custom timestamp with a configured role

* changes to the files with addition of new roles for the test_user

* reverting to OSS changes and few additions to the time_zone test to run as a test_user

* changes to security

* changes to the x-pack test to use elastic superuser

* fix for chart_types test

* fixes to area chart , input control test

* fix for dashboard filtering test and a new config role

* changes to handle the x-pack tests

* additional role for date nanos mixed

* added the logstash role to the accessibility tests

* removed telemetry setting

* docs+few changes to the tests

* removed Page navigation

* removed pageNavigation which was unused

* test/accessibility/apps/management.ts

* update management.ts

* aria label, and other changes

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* reverted

* unloading of logstash data, fixing aria label

* aria-label

* added the required role

* fix for tsvb chart

* fix for sample data test reverted home_page pageobject file

* changes to sample data test and visualize index file to incorporate OSS changes

* changes to describe() and some more changes to incorporate in settings_page

* re-adding the after()

* removed unwanted roles

* replaced kibana_user with kibana_admin

* added the check of deprecated kibana_user

* testing with kibana_admin  role

* fix for discover test

* incorporated the review comments

* incorporated the review comments

* incorporate review comments and added restoreDefaults()

* removed describe.only

* reverted the OSS logic change I had here- pulled into seperate PR

* incorporated the review comments

* incorporated review changes

* adding hidden=true to find hidden kibanaChrome

* change field.test.tsx to be same as that of master branch

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* removed the accidentally added file

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-17 18:21:48 -07:00
Rashmi Kulkarni
776c9e6a34
OSS logic added to test environment (#60134) (#60178)
* OSS logic added

* reverting the logic of isOSS()

TileMap and RegionMap are on OSS but not on x-pack because it has Maps.
2020-03-13 23:04:01 -07:00
Stacey Gammon
942ac82c6a
remove CODEOWNERS (#60125) 2020-03-13 17:02:20 -04:00
Brian Seeders
bfec9edbb9
Add a retry to dashboard test for a sometimes slow async operation (#59600) (#59788) 2020-03-13 11:47:00 -04:00
spalger
13ba5e2231 skip flaky suite (#59717)
(cherry picked from commit 25c33fcb15)
2020-03-12 09:51:06 -07:00
Brian Seeders
91f8071b5c
[7.x] Navigate back to discover app during test, because the saved search from the preceding test has major performance problems when used with this test (#59571) (#59591) 2020-03-10 12:46:34 -04:00
Matthias Wilhelm
b8b7bbb30a
[Discover] Migrate AppState/GlobalState to new app state helpers (#57175) (#59687)
* Replace AppState

* Replace GlobalState

* Adapt functional test

* Sync initial app state to URL

* Add jest tests

* Refactoring to use use-default-behaviors="true" in kbn-top-nav

* Cleanup code remove unnecessary imports and variables

* Refactor to use syncQueryStateWithUrl & stopSyncingQueryAppStateWithStateContainer

* Remove discoverPersistedState

* Allow indexPattern switch without $route.reload()

* Remove timeRangeObj because it's not needed

* Create new getDefaultQuery in data plugin

* Simplify check for null in sync_state_with_url.ts

* Remove unused stateMonitorFactory

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2020-03-10 13:43:21 +01:00
Dmitry Lemeshko
d0af5e4c59
Convert discover_page to ts, remove redundunt methods (#59312) (#59414)
* convert discover_page to ts

* remove deuplicated methods, improve tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-06 21:13:38 +02:00
Bhavya RM
ae3d1347ba
calling exitFullScreenMode in test (#59238) (#59317)
exitFullScreenMode in fullscreen dashboard test
2020-03-04 13:58:25 -05:00
Joe Reuter
46dcea538f
stabilize dashboard snapshot toast closing (#58709) (#59271) 2020-03-04 11:10:52 +01:00
Spencer
d007b0a58a
[7.x] fix some missing awaits in functional tests (#58807) (#58823)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-02 11:44:22 -07:00
Matthias Wilhelm
45cdc44eba
[Discover] Fix incorrect filter generated by "Filter for field present" (#58586) (#58732)
* Fix _exists_ filter handling 

* Add functional test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 09:27:39 +01:00
spalger
1b85349e9a skip flaky suite (#53888)
(cherry picked from commit facae44f5b)
2020-02-27 18:05:13 -07:00
Michail Yasonik
37c81357b7
[7.x] Fixing Newsfeed Cloud test bug (#58566) (#58622) 2020-02-26 18:39:08 -05:00
Wylie Conlon
a0cdf39feb
Median label shows "Median" instead of "50th percentile of" (#58521) (#58612)
* Median label shows "Median" instead of "50th percentile of"

* Update test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-26 13:25:16 -05:00
Joe Reuter
baa91fae36
refresh once to make sure everything is fetched (#58225) (#58582) 2020-02-26 13:43:20 +01:00
Matthias Wilhelm
49e9b1d73c
[Visualize] Improve linked saved search functional test (#58339) (#58505)
* Remove redundant sleep 
* Convert to TypeScript
2020-02-26 10:49:51 +01:00
Michail Yasonik
eafda0fa03
[7.x] Reverting grouped nav UI (#57724) (#58124)
* reverting grouped nav ui

* removing Management name change
2020-02-21 07:52:51 -05:00
Daniil Suleiman
ef8c36fe75
[Visualize] Remove legacy appState in visualize (#57330) (#58105)
* Remove legacy appState in visualize

* Read query and linked prop from scope

* Fix persisted state instance

* Fix functional tests

* Bound url updates with an editor

* Some improvements

* Fix comments
2020-02-20 16:15:43 +03:00
Dmitry Lemeshko
63f1c6e93a
replace Promise.all with for loop for clicks (#57909) (#57993)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-19 21:07:58 +01:00
Lee Drengenberg
6a23965971
handle viewing sample dashboards on default dist (#57510) (#57625)
* handle viewing sample dashboards on default dist

* re-work change to not break jest test

* Update snap for addition of data-test-subj

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-14 08:44:23 -06:00