Commit graph

548 commits

Author SHA1 Message Date
Catherine Liu
626f2e2710
[Canvas] Fix flaky custom element functional tests (#65908) (#67195)
* Enable clearWithKeyboard option when filling out custom elements form

* Added canvas functional tests path to CODEOWNERS

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-21 18:23:59 -07:00
spalger
dbbd39c512 skip flaky suite (#62927)
(cherry picked from commit bc3f382883)
2020-04-22 13:33:39 -07:00
Brian Seeders
e195697e47
Skip failing canvas custom elements test 2020-04-21 11:21:38 -04:00
Brian Seeders
78508b856d
Ensure logged out starting state for tests that need it (#59322) (#59573) 2020-03-10 10:45:20 -04:00
Brian Seeders
c8a5b63556
Check for alert dialog when doing a force logout (#59329) (#59594)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-10 10:44:54 -04:00
Joe Reuter
f68147aada
hide welcome screen for cloud (#58371) (#58449) 2020-02-25 14:44:43 +01:00
Joe Reuter
60092c2bd3
Use static time for tsvb rollup test (#57701) (#58100) 2020-02-20 12:03:12 +01:00
Nathan Reese
f85839f355
[Maps] only request field in docvalue_fields when the field supports doc values (#57372) (#57873)
* [Maps] only request field in docvalue_fields when the field supports doc values

* do not include scripted fields in sourceOnlyFields

* review feedback

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-18 11:01:51 -07:00
Robert Oskamp
2d3d082a27 Transform functional tests - disable saved search test 2020-02-14 16:12:18 +01:00
Jonathan Budzenski
8e1207bb0a skip settings tests (#57608) 2020-02-13 16:21:25 -06:00
Nathan Reese
f2000fcb82
[7.6] [Maps] Fix document source top hits split by scripted field (#57481) (#57586)
* [Maps] Fix document source top hits split by scripted field (#57481)

* [Maps] Fix document source top hits split by scripted field

* fix i18n message

* review feedback

* remove unneeded scss file

* fix saved object version number
2020-02-13 13:09:09 -07:00
Robert Oskamp
20a3a144ce
[ML] Functional tests - stabilize job row assertion (#56595) (#57420)
This PR makes assertion of the job row more robust against loading time issues during test execution.
2020-02-12 11:18:39 +01:00
Larry Gregory
809d55e430
[7.6] Logout should redirect to the login screen at the server… (#57191)
* logout should redirect to the login screen at the server base path

* Revert "logout should redirect to the login screen at the server base path"

This reverts commit c80716be6e.

* fix logout url in nav control service

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-10 08:22:51 -05:00
Joe Reuter
a9dc431071
Rollup TSVB integration: Add test and fix warning text (#56639) (#56828) 2020-02-05 13:20:23 +01:00
Justin Kambic
9f0f92e164
[Uptime] Fix flaky functional test for #54541 (#56449) (#56656)
* Add timeout block to race-prone functional test code.

* Add timeout for pagination click functions.

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 14:01:52 -07:00
Felix Stürmer
e1e367e42f
[Logs UI] Add smoke tests for log rate and categories tabs (#55088) (#56632)
Backports the following commits to 7.6:
 - [Logs UI] Add smoke tests for log rate and categories tabs (#55088)
2020-02-03 18:39:09 +01:00
Larry Gregory
680b8c4c5a
[7.6] [Docs] - Deprecate kibana_user role (#54606) (#56545)
* rename kibana_user => kibana_admin

* add migration note

* [DOCS] Fixes link for use in multiple books

* i18n fixes after merge from master

* fix i18n

* Apply suggestions from code review

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Apply suggestions from code review

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
2020-01-31 16:17:23 -05:00
Justin Kambic
7ae3221f01
[Uptime] [Test] Add functional test for monitor with location name but no geo (#55915) (#56331)
* Add unit test for missing geo on named location.

* WIP writing a functional test.

* New named-location with no geo data test is functioning.

* Update snaps for functional test attribute.

* Rename test.

* Remove unnecessary async syntax.

* Delete unneeded symbols.

* Remove unnecessary boolean conversion.

* Fix typo in a comment.
2020-01-29 14:07:29 -07:00
Justin Kambic
67343f77b1
[Uptime] Add timeout for slow process to skipped functional tests (#56065) (#56136)
* Reorder assertions in functional tests.

* Introduce retry to functional tests.
2020-01-28 09:13:51 -07:00
Wylie Conlon
04e65128d6
[Lens] Fix regression in field list for beats (thousands of fields) (#55625) (#55745)
* [Lens] Fix regression in field list for beats

* Add api test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-23 18:42:41 -05:00
Dmitry Lemeshko
44e1db61ad
[code search] removing test config and page object (#55273) (#55578)
* [code search] delete PO and test config

* remove import

* remove from export

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-22 19:49:46 +01:00
Justin Kambic
e8ef153a4a
[Uptime] Fix flaky uptime overview page test (#54767) (#55418)
* Fix flaky uptime overview page test.

* Increase timeout for url checks.

* Prefer standard `retry.try` to custom retry implementation.

* Remove unneeded symbol.

* Remove unnecessary type annotation.

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-21 13:34:58 -05:00
Dima Arnautov
1fa378b31f
[ML] Formatting for additional timing and model size stats (#55062) (#55415)
* [ML] formatting for additional timing and model size stats

* [ML] roundToDecimalPlace only average search time

* [ML] adjust functional tests

* [ML] remove debug tag, fix assert value

* [ML] check for no decimal place

* [ML] fix functional tests

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-21 19:06:30 +01:00
Greg Thompson
e0d6407bde
[7.x] Upgrade EUI to v18.2.0 (#54786) (#54869)
* Upgrade EUI to v18.2.0 (#54786)

* 18.2.0

* ts update

* Updated `euiColorVis0`

* Update `euiColorVis1`

* Updating `euiColorVis2`

* Updated `euiColorVis3`

* Updated the rest

* Updated hard-coded viz palette hexes to latest

* src snapshot updates

* x-pack test updates

* mock jest fn

* Updated two vegalite visualization screenshots

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>

* snapshot

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2020-01-14 22:53:57 -06:00
Nathan Reese
7fd3e10a0a
[Maps] expand extent filter to tile boundaries (#54276) (#54848)
* [Maps] expand extent filter to tile boundaries

* fix functional test

* simplify expandToTileBoundaries

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-14 20:52:39 -05:00
Poff Poffenberger
96a6a4f7e6
[Canvas] Adds functional test for Canvas custom elements (#52920) (#54822)
* Adds functional test for Canvas custom elements

feedback cleanup

* Opening up Canvas app first

* Add skip firefox tag to custom element test
2020-01-14 23:07:08 +00:00
Dmitry Lemeshko
4e6b99cdfc
Functional tests: refactor dashboard_page (#54588) (#54750)
* [test/functional] cleanup & tsfy dashboard_page

* fix & improvement

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-14 22:04:35 +01:00
Robert Oskamp
2a3a9f7260
[ML] Functional tests - basic tests for single metric viewer and anomaly explorer (#54699) (#54746)
This PR adds basic functional UI tests for the single metric viewer and the anomaly explorer.
2020-01-14 20:11:48 +01:00
Andrew Cholakian
388303bc34 [Uptime][7.x] Temporarily skip flakey tests (#54678)
* [Uptime] Temporarily skip flakey tests

* Fix further flakey tests due to hardcoding times + using snapshots
2020-01-13 22:11:27 -05:00
Justin Kambic
05f6d7ba5d
[Uptime] Add tags dropdown to Overview filters group (#50837) (#54635)
* Finish implementing snapshot count redux code.

* Replace GQL-powered Snapshot export with Redux/Rest-powered version.

* Add tests for Snapshot API call.

* Rename new test file from tsx to ts, it has no JSX.

* Rename outdated snapshot file.

* Update filter groups to use redux and add tags dropdown.

* Delete obsolete graphql filter bar query.

* Add fetch effect factory.

* Use generic fetch effect factory to avoid code redundancy.

* Infer isDisabled status from data for filter group buttons and disable when there are no items.

* Fix removal of overview filter from previous rebase.

* Rename generator-related functions from *saga to *effect.

* WIP trying to make filters filterable.

* WIP cleaning up.

* Delete obsolete API test.

* Add API test for filters endpoint.

* Remove obsolete fields from overview filters.

* Add functional testing attributes and delete a comment for filter popover.

* Update obsolete unit test snapshots and test props for filter popover.

* Fix broken types and delete obsolete test snapshots for filters api call.

* Modify filters endpoint to adhere to np routing contracts.

* Add functional test and associated helper functions for filters API.

* Remove obsolete resolver function for filter bar.

* Remove obsolete FilterBar type from graphql schema.

* Delete static types generated for obsolete GQL schema types.

* Delete obsolete fields from default filters state.

* Delete obsolete method from graphql schema.

* Add default values to unit test that requires complete app state mock.

* Extract helper logic to dedicated module.

* Finish working on adapter/helper tests.

* Add state field for overview page search query.

* Apply search kuery to filters.

* Simplify creation of overview filter fetch actions and API call.

* Add tests for overview filter action creators.

* Simplify api query parameterizaton.

* Improve a variable name.

* Update formatting of file.

* Improve a variable name.

* Improve a variable name.

* Simplify API endpoint typing.

* Clean up helper code and rename some functions/vars.

* Clean up parameterization of filter values.

* Move function from dedicated file back to calling file.

* Clean up naming in a function.

* Move function from dedicated file to caller's file.

* Modify interface of function return value.

* Have function throw error when it receives invalid input instead of returning empty object.

* Extract constant value to dedicated function value and remove parameter from function.

* Clean up object declarations.

* Rename a property.

* Fix issue where function was not handling empty input.

* Delete unnecessary snapshots.

* Add message to internal server error response.

* Fix broken type.

* Delete type that was added as a result of a merge error.

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 15:46:18 -05:00
Poff Poffenberger
e7a3354837
[Canvas] Fix expression updating bug (#54297) (#54604)
* Fix expression updating bug

* Add functional test for expression editor

* Add page object helper to open expression editor

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 20:46:03 +00:00
Maja Grubic
3115ae650b
[Lens][Dashboard] Adding Lens to Dashboard (#53110) (#54607)
* First version of adding Lens to dashboard

* Fix failing unit test

* Replacing explicit Lens query param with a more generic one

* Fixing failing unit test

* Adding a unit test for redirect

* Do not show Save New if adding from Dashboard

* Adding functional test

* Adding functional test

* Fixing type issues

* Renaming query params

* Fixing failing unit test

* Removing unused constants

* Fixing erroneous imports

* Fixing erroneous import

* Fixing import

* Fix failing typecheck

* Removing timefilter from Dashboard URL

* Fixing type error

* Replacing time parsing with rison

* Replacing URL regex parsing with legacy URLs

* Fixing failing test

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 19:33:34 +00:00
CJ Cenizal
55efa3b55f
Allow User to Cleanup Repository from UI (#53047) (#54616)
* Added repository cleanup button. Added logic for spinner while loading, added new repository request, type and telemetry metric.
2020-01-13 11:23:14 -08:00
Pierre Gayvallet
8636011d7c
Add ApplicationService app status management (#50223) (#54545)
* add unimplemented registerAppStatusUpdater & remove observers for apps and legacyApps

* adapt NavLinksService to use new application observables

* merge availableApps$ and availableLegacyApps$

* updating core docs

* adapt the navLink updating methods

* filters the inaccessible apps from availableApps$

* restrict access to navigateToApp depending on app status

* fixes due to merge

* add statusUpdater$ to AppBase

* export new types

* disable navlink depending on app status

* update generated doc

* update snapshots for disabled prop

* Address josh review

* Address review comments

* fix merge conflicts

* adapt changes due to merge

* update generated doc

* add comment and fix navlink url for custom url apps

* add AppNavLinkStatus type to split app/navlink states

* fix typo

* review comments and improvements

* add functional tests

* update generated docs and migration guide

* fix wrong type cast on AppsMenuProvider.readLinks

* properly type return of navigateToApp
2020-01-13 07:41:36 +01:00
Larry Gregory
8b0b09a4ea
Security - Role Mappings UI (#53620) (#54534)
* Initial role mappings UI

* apply design edits

* address PR feedback

* fix type cast for number field

* Update x-pack/legacy/plugins/security/public/views/management/role_mappings/edit_role_mapping/components/mapping_info_panel/mapping_info_panel.tsx

Co-Authored-By: Joe Portner <5295965+jportner@users.noreply.github.com>

* Cleanup FTR configuration, and handle role mapping 404 errors properly

* align naming of role mappings feature check

* Apply suggestions from code review

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* add missing test assertions

* inlining feature check logic

* switch to using snapshot

* use href instead of onClick

* adding delete unit test

* consolidate href building

* unify page load error handling

* simplify initial loading state

* documenting unconditional catch blocks

* use nodes.info instead of transport.request

* Apply suggestions from code review

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* move model out of LP into NP

* convert except_field_rule to except_any_rule

* docs, take 1

* update gif

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-11 20:05:46 -05:00
Andrew Cholakian
40346ca0d9
[Uptime] Improve query performance with Heartbeat 7.6+ data. (#52433) (#54352)
This PR optimizes both the snapshot component and the monitor list on the overview page by using the new monitor.timespan field from elastic/beats#14778. Note that the functionality here will work with heartbeats lacking that patch, but the performance improvements will be absent.

This PR adapts the snapshot tests to use synthetically generated data which should be easier to maintain. As a result some of that code is refactored as well.

See #52433 parent issue as well.
2020-01-09 14:11:12 -06:00
Zacqary Adam Xeper
39050dd30b
[Logs UI] Refactor log position to hooks (#53540) (#54204)
* Move URL state to hook

* Fix log filter URL state infinite loop

* Initial refactor of log position to hooks

* Simplify and reimplement controlsShouldDisplayTargetPosition

* Fix live streaming

* Flatten logposition destructuring

* Revert "Move URL state to hook"

This reverts commit 4e04aa061d.

# Conflicts:
#	x-pack/legacy/plugins/infra/public/containers/logs/log_filter/use_log_filter_url_state.tsx
#	x-pack/legacy/plugins/infra/public/pages/logs/stream/page_providers.tsx

* Fix unused imports

* Fix link-to test

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-08 12:42:53 -06:00
Dmitry Lemeshko
a6ea611344
Functional tests: refactor visualize_page (#53845) (#54126)
* 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>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-07 17:14:37 +01:00
Tim Sullivan
d023de9c1c
[7.x] [Reporting/Tests] consolidate functional test configs (#52671) (#53919)
* [Reporting/Tests] consolidate functional test configs (#52671)

* [Reporting/Tests] consolidate functional test configs

* remove console.log

* trash

* Update

* add more to the comment

* restore historic archive for wip ui functional tests

* remove incompatible option

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-06 15:51:51 -07:00
Maja Grubic
3d088cc3cf
[Dashboard] Empty screen redesign (#53681) (#54008)
* 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>

Co-authored-by: Ryan Keairns <rkeairns@chef.io>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-06 13:40:08 +00:00
Zacqary Adam Xeper
350739b82d
[Logs UI] Refactor query bar state to hooks (#52656) (#53970)
* [Logs UI] Refactor query bar state to hooks

* Update typedef

* Typecheck fix

* Typecheck fix

* Simplify log filter state

* Remove WithLogFilter HOC and simplify hook further

* Rename js to ts

* Fix redirect imports

* Fix link-to test accuracy

* Fix link-to test

* Simplify destructuring signature

* Stylistic fixes

* Move URL state to hook

* Fix log filter URL state infinite loop

* Revert "Fix log filter URL state infinite loop"

This reverts commit 43302b354a.

* Revert "Move URL state to hook"

This reverts commit c61f5b190b.

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-03 17:19:51 -06:00
Tim Sullivan
c128f93128
[Reporting] Correct the docvalue_fields params in the search query Download CSV from Dashboard Panel (#52833) (#53918)
* fix the bug and add a test

* fix query bug of empty array

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-03 10:04:54 -07:00
Joe Reuter
3beace99eb
[7.x] Enforce shimmed plugin boundaries (#52633) (#53716)
* Enforce shimmed plugin boundaries (#52633)

* resolve conflicts around field chooser
2019-12-20 23:41:28 +01:00
Nathan Reese
2055347fc7
[Maps] Label style properties (#52957) (#53630)
* text styling

* label style editor UI

* wire up styles to mb

* allow string values

* remove console.log

* default getFields to provide ordinal fields for vector source

* fix vector_style jest test

* add label styles to docs

* fix prettier errors

* use index-pattern field formatter to format label

* rename LABEL to LABEL_TEXT

* review feedback

* fix problem with icons not displaying with labels

* fix functional tests

* fix canno read name of null error

* update jest expect

* fix eslint errors

* do not display label text in legend

* always show all label styling properties in editor

* review feedback
2019-12-19 15:02:22 -07:00
Kerry Gallagher
9d7917ce9e
[Logs / Metrics UI] Client side NP migration (#52867) (#53602) 2019-12-19 18:09:42 +00:00
Patrick Mueller
6e620ed444
adds per-actionType enablement via config xpack.actions.enabledActionTypes (#52967) (#53300)
* adds per-actionType enablement via config xpack.actions.enabledTypes

resolves: https://github.com/elastic/kibana/issues/52326
2019-12-17 12:27:04 -05:00
Chris Roberson
41787f84ba
[Tests] Add a helper to detect if functional tests are running against cloud (#51817) (#53164)
* Add a helper to detect if functional tests are running against cloud

* PR feedback

* Clean up comment

* New eslint rules applied
2019-12-16 16:12:06 -05:00
spalger
29921e1935 ensure prettier overrides take precedence, remove style rules
(cherry picked from commit c52571be68)
2019-12-14 17:40:45 -07:00
spalger
c2c12539b8 autofix all violations 2019-12-13 23:55:01 -07:00
Brandon Kobel
1bce8e7a3a
Using forceLogout *almost* everywhere (#52922) (#52996)
* Changing usages of .logout() to .forceLogout()

* Using `.logout` from within the security login page test
2019-12-13 12:27:38 -05:00