Commit graph

2993 commits

Author SHA1 Message Date
Dmitry Lemeshko
3b3122e651
bump chromedriver version to 76 (#42468) (#42882)
* bump chromedriver version to 76

* [test/interpreter_functional] update snapshots

* [test/interpreter_functional] skip failing tests

* Revert "[test/interpreter_functional] update snapshots"

This reverts commit 6401554882.

* [test/interpreter_functional] skip snapshot tests
2019-08-08 07:39:54 +02:00
Spencer
e50a6ab7f9
[7.2] [ftr/cheerio] improve cheerio types to include test subj… (#42546) 2019-08-02 15:50:30 -07:00
Dmitry Lemeshko
d118d7eb88
FTR: fix testSubjects.missingOrFail (#42290) (#42323)
* [services/test_subject] fix missingOrFail

* [services/test_subjects] allowHidden option for missingOrFail

* [page_objects/dashboard_page] wait for euiTable loaded, increase timeout for loading page check
2019-07-31 11:19:26 +02:00
Dmitry Lemeshko
2a2042e636
Functional tests: make sure clicked dashboard is opened (#42006) (#42060)
* [page_objects/dashboard_page] make sure selected dashboard is opened
2019-07-26 17:55:10 +02:00
Dmitry Lemeshko
d5bf3fcadb
[service/remote] check env variable value (#41909) (#41958) 2019-07-25 11:43:31 +02:00
Dmitry Lemeshko
7bccacb7f8
Ftr/tsfy doc table (#41710) (#41957)
* [services/doc_table] tsfy service and use parse dom to get rows

* [services/doc_table] do not pass table element as argument

* [services/doc_table] update service to minimize StaleElementReference cases

* [services/doc_table] add missing access modifier

* [services/doc_table] change getHeaderFields and fix return types
2019-07-25 11:41:41 +02:00
Spencer
cd1991145b
[7.2] [jest] disallow invalid describe calls (#41378) (#41487)
* [jest] disallow invalid describe calls (#41378)

* [jest] disallow invalid describe calls

* correct other describe calls

* remove unnecessary glob

* cast decribe names to strings

* remove new async describe function

# Conflicts:
#	src/legacy/core_plugins/data/public/filter/filter_manager/filter_manager.test.ts
#	test/functional/apps/dashboard/dashboard_filtering.js
#	test/functional/apps/visualize/_point_series_options.js
#	x-pack/legacy/plugins/cross_cluster_replication/__jest__/client_integration/auto_follow_pattern_list.test.js
#	x-pack/legacy/plugins/cross_cluster_replication/__jest__/client_integration/follower_indices_list.test.js
#	x-pack/legacy/plugins/index_management/__jest__/client_integration/home.test.ts
#	x-pack/legacy/plugins/maps/public/connected_components/map/feature_properties.test.js
#	x-pack/legacy/plugins/maps/public/connected_components/map/feature_tooltip.test.js
#	x-pack/legacy/plugins/remote_clusters/__jest__/client_integration/remote_clusters_list.test.js
#	x-pack/legacy/plugins/reporting/export_types/csv/server/__tests__/execute_job.js
#	x-pack/legacy/plugins/reporting/server/usage/get_reporting_usage_collector.test.js
#	x-pack/legacy/plugins/security/server/lib/authorization/privileges/privileges.test.ts
#	x-pack/legacy/plugins/siem/public/components/last_event_time/index.test.tsx
#	x-pack/legacy/plugins/siem/public/components/page/add_to_kql/index.test.tsx
#	x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx
#	x-pack/test/functional/apps/canvas/smoke_test.js
#	x-pack/test/functional/apps/maps/documents_source/top_hits.js
#	x-pack/test/functional/apps/rollup_job/rollup_jobs.js
#	x-pack/test/functional/apps/uptime/monitor.ts
#	x-pack/test_utils/jest/integration_tests/example_integration.test.ts

* fix eslint violations
2019-07-18 21:59:47 -07:00
Dmitry Lemeshko
5b1c7a6b0d
[7.2] FTR: upgrade chromedriver to 75 (#40791) (#41057) 2019-07-13 01:15:23 +02:00
Dmitry Lemeshko
f41db0bd42
WebElementWrapper: Retry WebDriver atomic calls (#40423) (#40990)
* [services/lib/web_element_wrapper] use Generics in replyCall

* [services/lib/web_element_wrapper] remove redundant return types

* [services/lib/web_element_wrapper/] set retryCall timeout to 200 ms

* [services/find] explcitly pass element to have locator===null by default

* use static method to create WebElementWrapper

* missed a couple uses

* move some values to constants

* remove some unnecessary type info
2019-07-12 18:27:40 +02:00
Spencer
a874c68ef4
[7.2] [visualize] wait for save to complete before proceeding… (#40973) 2019-07-12 07:34:10 -06:00
spalger
fbcd2a20ae skip flaky test (#39927)
(cherry picked from commit 0922772b70)
2019-06-28 15:48:21 -07:00
Spencer
af8a93c683
[7.2] [percy] define snapshot width to match current client wi… (#39649) 2019-06-26 07:50:38 -07:00
liza-mae
c711f1102b
Add rendering of canvas images and update percy agent package (#39456) (#39523)
* Add rendering of canvas images and update percy agent package

* Spencer's fix for eslint issues

* restore canvas elements after taking snapshot

* copy over all styles from canvas to image stand-in

* percy snapshots only run in chrome, so they can use modern js features

* only run visual regression suites

* add stub maps test

* fix arg order

* use more modern syntax that totally works in chrome

* typo

* fix ftr test timeout when using --inspect-brk

* Revert "add stub maps test"

This reverts commit 32dc965adb.
2019-06-24 11:13:44 -06:00
Spencer
f429b54d00 [percy] only execute percy setup when necessary (#39043)
(cherry picked from commit 9c1bdb9298)
2019-06-16 07:24:59 -07:00
liza-mae
043715562b
[WIP] FTR Percy changes (#36897) (#38999)
* [ftr/percy] integrate percy with functional test runner

* execute ftr within `percy exec`

* share PERCY_BIN and GRUNT_BIN vars in setup

* [license] whitelist `(Unlicense OR Apache-2.0)`

* [percy] include pr/parallel info in env

* echo the actual variable value

* destructure required modules

* [ci] calculate percy env in a script

* remove outdated eslint overrides

* oops, nonce should be the same for each build

* take snapshots in context tests

* add percy snapshots to some dashboard tests

* account for extra execution of PERCY_BIN

* remove usage of percy service

* rename service to `visualTesting`

* write a simple test

* switch left-over percy test to visualTesting

* set log level for percy agent

* trigger ci

* try using the system chrome install instead of downloading one

* fix export definition

* Don't skip chromium download

* Add Spencer's fix to point to chrome installation

* Attempting to split tests into own ci job and test files

* Renumber job

* Add tag to decorations file

* Try new files with existing CI job

* Try again to create a new CI job

* Fix eslint problem with space

* eslint updates

* fix console test

* make test names unique

* Update ci group names

* Try old name again

* save

* add separate visual_regression ci job

* add visual regression ci job

* add new job to jobs.yml

* update path to take_percy_snapshot script

* use fixed percy job total

* fix common services import

* move visual_create_and_add_embeddables to visual_regression project

* finish moving create_and_add_embeddables

* add x-pack visual regression job

* migrate dashboard_snapshots tests to visual_regression

* remove references to removed test files

* restore some unnecessary changes

* reimplement the login page tests

* yarn.lock update

* fix test

* remove old CI_GROUP 100 block

* update failed_tests trap

* reduce yarn.lock changes

* disable debug logging

* disable visual-regression tests for now, we can enable them in specific prs
2019-06-14 14:02:52 -06:00
Spencer
86bedfc449
[7.2] [testFailureReporting] only run on master/version jobs (#38497) (#38548) 2019-06-10 08:44:21 -07:00
Spencer
357af351d8
[7.2] [jest] don't be crazy, run with caching enabled (#38332) (#38350) 2019-06-06 23:26:12 -07:00
spalger
ef94824a16 [ci] disable firefox tests
(cherry picked from commit c655a11ece)
2019-06-06 14:29:51 -07:00
Luke Elmers
b5e8e9fae9
Fix broken filtering on metric visualizations. (#38029) (#38144) 2019-06-05 16:09:42 -06:00
Dmitry Lemeshko
d57546ce67
functional tests/firefox wait for loading after page refresh (#38082) (#38119) 2019-06-05 18:36:40 +02:00
Spencer
2ad3c64748 [7.2] FTR: add support for Firefox browser (#32509) (#37752)
* FTR: add support for Firefox browser (#32509)

* skip and adjust functional tests for Firefox

* downgrade geckodriver to 0.22.0

* [ftr] add firefox specific config file

* remove hard coded firefox adjustments

* remove firefox specific screenshot directory

* run functional tests in firefox in x-pack

* pass the logger to readConfigFile()

* rename local var

* skip xpack firefox config

* run xpack firefox functional tests in separate command

* update report name for XPack firefox results

* adjust viz shared item test

* skip shared item test

* [test/feature_controls] increase timeout to 20 sec & use forceLogout

* FF timeout on TSVB, refresh page on failure for url navigation

* [feature_controls/visualize_security] increase timeout to 20 sec

* skip dev_tools_spaces tests on FF

* run all groups 3 times

* skip more func tests

* skip more tests

* skip all feature controls tests for Firefox

* revert back changes in feature controls tests

* rename xpack report for chrome

* skip tile map for FF, wait for render before saving

* Revert "run all groups 3 times"

This reverts commit 12b4f69627.

* revert refresh on login

* apply feedback

* [visualize/_point_series_options] add missing change on labels assertions
2019-06-01 11:14:05 +02:00
Nick Peihl
db84dee455
Skip tilemap zoom warning functional test on cloud (#37570) (#37586) 2019-05-30 22:11:08 -07:00
Justin Kambic
08555cc6e3
Add a function to the time picker page object to set a commonly-used timespan option. (#37374) (#37504) 2019-05-30 18:01:56 -04:00
Dmitry Lemeshko
bbbb33fc27
[visualize/_shared_item] skip test due to #37130 (#37131) (#37279) 2019-05-29 11:45:46 +02:00
Dmitry Lemeshko
4406bf3ff6
TSVB: functional test for color picker, preview disable and series clone (#37186) (#37223)
* [visualize/_tsvb_chart] test for color picker, changing  preview and cloning series
2019-05-28 17:16:51 +02:00
Chris Roberson
b0b1c574fb
[Monitoring] Fix 500 error from /api/stats (#36986) (#37083)
* Fix 500 and add test for it

* Return an empty object so the logic later will still execute

* Update tests
2019-05-24 11:03:02 -04:00
dave.snider@gmail.com
265b570dcf
eui 10.4.2 (#37032) 2019-05-23 16:33:47 -07:00
spalger
4b5f0d6627 Revert "Merge branch 'backport/7.x/pr-36322' of https://github.com/LeeDr/kibana into 7.x"
This reverts commit 215bc28186, reversing
changes made to 9aa5242607.
2019-05-21 10:58:41 -07:00
LeeDr
215bc28186 Merge branch 'backport/7.x/pr-36322' of https://github.com/LeeDr/kibana into 7.x 2019-05-21 12:45:06 -05:00
Vitali Haradkou
656e704d3e
FTR tsfy combobox service (#35493) (#36747)
* migrate combobox to typescript
2019-05-21 12:28:36 +03:00
dave.snider@gmail.com
680f52af83
EUI@10.4.1 (#36711) (#36728)
* update eui to 10.4.1

* revert lock
2019-05-20 20:10:15 -04:00
Todd Kennedy
e9bfc7fb11
[chore] upgrade wreck (#36527) (#36552)
wreck has been deprecated and will receive no further security updates
in favor of @hapi/wreck
2019-05-14 18:30:43 -07:00
Lee Drengenberg
b813675f8e check newest doc timestamp in diff timezones (#36322) 2019-05-10 14:40:54 -05:00
Spencer
8280517349
[7.x] [ftr/tsvb] retry if the legent count is off (#36375) (#36391) 2019-05-09 18:19:06 -07:00
Matt Bargar
d6100f4f36
Extract QueryBarInput component from QueryBar (#35827) (#36383)
Solution for use cases that need a query bar without a submit button or date picker that still want KQL and autocomplete. Necessary for the KQL in TSVB and KQL in filters aggregation efforts.
2019-05-09 17:49:16 -05:00
Nathan Reese
95be609ba4
Allow embeddable to specify edit label (#36296) (#36399)
* Allow embeddable to specify edit label

* update test plugins

* pass getDisplayName in options parameter to ContextMenuAction constructor in plugin example

* more typescript clean-up magic

* some more typescript error fun

* change maps embeddable edit label i18n prefix

* clean-up localization
2019-05-09 15:53:54 -06:00
Va Da
8aa6fb52f8
Better scripted field editor (#36064) (#36340)
* fix: 🐛 make script input field full width

* test: 💍 update Jest snapshots

* feat: 🎸 add Groovy syntax highlighting

* test: 💍 update test snapshot

* test: 💍 fix scripted field form functional test

* test: 💍 fix more functional tests for scripted field input

* refactor: 💡 use import instead of require()
2019-05-09 13:12:22 +02:00
Mike Côté
5a5e0f170a
Allow any type of saved object to import / export (#34896) (#36147)
* Modify the relationships API and UI

* Remove type validation on export

* Update relationship test snapshots

* Change relationships table titles

* Change relationships UI to share one table

* Add server side logic to inject meta data into saved objects from plugins

* Manually enable each type of saved object to support

* Use injected vars to determine what types are import / exportable

* Fix some broken tests

* Remove unused translations

* Fix relationships mocha tests

* Remove tests that ensured types are restricted, functionality removed

* Move kfetch logic into separate file

* Add inAppUrl to missing types

* Add tooltip to management table titles that aren't links

* Make relationships screen support filtering by type

* Fix failing tests

* Add refresh support for inAppUrls

* Add error notifications when export API call fails

* Add relationship direction

* Fix broken tests

* Remove graph workspace from import / export

* Use parent / child terminology for relationships

* Use direct relationship terminology

* Flip view / edit logic in saved object management app

* Make config saved object redirect to advanced settings

* Fix broken tests

* Remove unused translations

* Code cleanup

* Add tests

* Add fallback overwrite confirmation object title

* Enforce supported types on import, export and resolve import errors

* Fix broken tests

* Fix broken tests pt2

* Fix broken tests pt3

* Test cleanup

* Use server.decorate to access savedobjectschemas

* Fix some broken tests

* Fix broken tests, add new title to relationships screen

* Fix some broken tests

* Handle dynamic versions

* Fix inAppUrl structure in tests

* Re-use generic canGoInApp

* Fix broken tests

* Apply maps PR feedback

* Apply PR feedback pt1

* Apply PR feedback pt2

* Add savedObjectsManagement to uiExports

* Fix broken tests

* Fix encodeURIComponent implementation

* Merge 403 and unsupported type errors into single error

* Apply suggestion

* Remove import / exportable by default, opt-in instead

* Fix type config to show up properly in the table

* Change config type title and fix tests

* Remove isImportableAndExportable where set to false (new default)

* Remove comments referencing to authorization

* Add unit tests for spaces

* Add unit tests for security plugin

* Change can* signature to be the same as their equivalent function, apply PR feedback

* Cleanup git diff

* Revert "Change can* signature to be the same as their equivalent function, apply PR feedback"

This reverts commit b657ac8fc1.

* Revert "Add unit tests for security plugin"

This reverts commit 6287a8cecf.

* Revert "Add unit tests for spaces"

This reverts commit 2674a9d78f.

* Revert "Remove comments referencing to authorization"

This reverts commit 9618c2cc3a.

* Revert "Merge 403 and unsupported type errors into single error"

This reverts commit 99aea10c0f.

* Add CUSTOM_ELEMENT_TYPE for import / export

* Fix broken tests

* Fix broken tests pt2

* Prevent crashing app when inAppUrl is undefined
2019-05-06 20:43:01 -04:00
dave.snider@gmail.com
654bce800f
EUI@10.4.0 (#36085) (#36090)
* EUI@10.4.0

* Fix TS typing in src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx
2019-05-06 13:36:02 -07:00
Dmitry Lemeshko
12aa67edb2
adjust tests to pass on Firefox (#35597) (#36069)
* adjust tests to pass on Firefox

* update feature controls tests to pass on Firefox

* use xpath to search for index pattern
2019-05-04 09:31:26 +02:00
Daniil Suleiman
aba6d6233c
[Vis: Default editor] EUIficate time interval control (#34991) (#36006)
* EUIficate time interval control

* Update tests

* Remove empty option, update fix tests

* Bind vis to scope for react component only

* Combine two interval inputs into one EuiCombobox

* Add error message

* Add migration script; remove unused translations

* Update fuctional tests

* Update unit test

* Update tests; refactoring

* Use flow to invoke several functions

* Update test

* Refactoring

* Reset options when timeBase

* Add type for editorConfig prop

* Add placeholder

* Fix lint errors

* Call write after interval changing

* Fix code review comments

* Make replace for model name global

* Revert error catch

* Remove old dependency

* Add unit test for migration test

* Fix message

* Fix code review comments

* Update functional test
2019-05-03 12:03:42 +03:00
Daniil Suleiman
813b6ef8b7
[Vis: Default editor] EUIficate order and size controls (#35134) (#36005)
* EUIficate order and size controls
2019-05-03 12:02:56 +03:00
Chandler Prall
7208804525
Update EUI 10.1.0 -> 10.3.1 (#35970) (#35977) 2019-05-02 15:32:03 -06:00
Dmitry Lemeshko
35a5a84e71
Update services to support functional tests in Firefox (#35648) (#35953)
* add Browsers enum & changes to support FF

* revert moveTo signature to Promise<void>
2019-05-02 18:13:01 +02:00
Alexey Antonov
0381e85b5b
Have TSVB signal render-complete equals true on rendering (#35215) (#35946)
Fix: #16290
2019-05-02 14:50:46 +03:00
Matthew Kime
f373ab974c
implementing github checks - second attempt (#35757) (#35906)
implement github checks in ci
2019-05-01 19:53:02 -05:00
Caroline Horn
6d97358edd Fix some EuiFlyout and EuiModal usages (#35829) (#35894)
* Fix maps layer flyout

* Fixing some flyout headers with border and size

* Using euiOverflowShadow to remove warnings

* Fixed up some regular modal usages

* Added danger colors to EuiConfirmModals where necessary
2019-05-01 15:48:41 -06:00
Daniil Suleiman
d7be854275
[Vis: Default editor] EUIficate other bucket control (#34945) (#35781)
* EUIficate other_bucket control

* Filter invalid string params

* Fix functional tests

* Fix browser tests
2019-04-30 13:21:30 +03:00
Brandon Kobel
7943f9895d
Feature Controls - Read only badges (#35252) (#35758)
* Adding readonly badge to the discover application

* Dashboard get a badge

* Visualize gets a badge

* Timelion gets a badge

* Canvas gets a badge

* Maps gets a badge

* Infra gets a badge

* Graph gets a badge

* Dev Tools gets a badge

* Index Patterns get badges

* Advanced Settings get badges

* Infra and i18n are super chill friends

* Using proper i18n prefix for xpack

* Adding badges to the uptime application

* APM gets a badge!

* Adding functional tests for the discover read-only badge

* Functional tests for everyone!

* Removing unused import

* Fixing chrome service mock

* Switching from ChromeBadge | null to ChromeBadge | undefined

* Fixing canvas badge assertst

* Fixing Logs ui capabilities

* More ChromeBrand | null to ChromeBrand | undefined related changes

* Using named badges

* Revert "Using named badges"

This reverts commit c0e341bee1.

* i18n'ing the uptime read-only badges

* Adding ChromeService tests for badges

* Starting to add tests for the legacy badge API

* Changing capitalization of "Read Only" to "Read only"

* Adjusting styles

* Adding $setupBadgeAutoClear tests

* Changing the badge tooltip

* Fixing timelion i18n prefix

* Changing where Canvas sets the breadcrumbs

* Using a read-only badge with an icon

* Update x-pack/plugins/canvas/public/angular/controllers/canvas.js

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

* Update src/legacy/core_plugins/timelion/public/app.js

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

* Changing discover's read-only verbiage

* Removing tests for code that moved to an untested part of Kibana

* Fixing issues introduced with the rebase

* Fixing priv ileges snapshot

* Adding back dropped docs

* Fixing plugin plugin doc

* Ensuring iconType is set as well

* Updating badge api, angular components moved

* graph to Graph

* Fixing linter

* Switching from aria-label to data-test-badge-label for testing

The tabIndex allows screenreaders to work properly

* Fixing eslint error

* Fixing more issues introduced by the merge from master

* APM updates badge in React hook

* Applying changes suggested by Aleh
2019-04-29 13:52:21 -07:00
Maryia Lapata
3870c9e24b
[Vis: Default editor] EUIficate number interval (#35478) (#35728)
* EUIficate number interval

* Add type for EditorConfig

* Update functional tests

* Add placeholder

* Update placeholder

* Use FormattedMessage instead of i18n

* Set validity in the effect only

* Refactoring: add showValidation prop and remove isInvalid

* Update prop
2019-04-29 16:10:28 +03:00