Commit graph

2200 commits

Author SHA1 Message Date
Lukas Olson
3f6fe6a271 Close timepicker when a filter/interval is selected (#9618)
* Close timepicker when a filter/interval is selected

* Copy absolute variables before sending

* Use & instead of = for directive binding

* Fix timepicker tests

* Fix timepicker tests and remove tests that no longer apply
2017-01-10 11:32:34 -07:00
Stacey Gammon
d295553d95 fix selenium tests broken by default panel size change (#9802) 2017-01-09 17:03:27 -05:00
Jonathan Budzenski
980b67ed68 [test fixtures] string -> text/keyword for logstash data (#9799) 2017-01-09 15:00:16 -06:00
Thomas Neirynck
929b4de122 Read map service metadata from external service (#8630)
This modifies the way Kibana reads out metadata about the TMS service used in the Tilemap Visualization.

- Kibana now uses an external service that exposes a 'manifest'. This contains metadata about one or more available TMS services
- Kibana continues to respect the configuration of the kibana.yml file. If a custom TMS service is set here, the manifest will not be consulted
- This also adds an API extension point for other plugins to add additional query parameters to the requests to the manifest service and for the individual tile requests to the TMS.
2017-01-03 17:33:26 -05:00
Peter Pisljar
ae150f5835 Vislib heatmap visualization (#9403)
* adding UI styles (should extract)

* adding heatmap vislib type

* adding heatmap visualization

* adding documentation

* renaming heatmap options

* fixing options issues

* fixing color selection

* fixing / adding tests

* adding more color schemas

* adding more options

* adding cell labels

* fixing selenium test

* only allow to rotate labels by 90 degrees

* converting color number slider to number input

* hide labels if they don't fit

* fixing small issues

* improved range options

* fixing based on Thomas' review

* rebasing on master and fixing linting issues

* adding selenium tests

* fixing alerts

* fixing padding

* fixing based on review

* fixing math

* fixing custom range options

* removing $timeout

* notification in case labels were hidden

* fixing tests

* fixing based on last review

* fixing based on thomas' review
2016-12-26 19:15:50 +01:00
Lee Drengenberg
0cbec2cad7 New scripted field tests (#9242)
* [WIP] new scripted field tests

* Final improvements on 12 new tests for 1 expression and 2 painless scripted fields

* Add try loops around testing first Discover doc

* Set timezone to UTC and adjusted data accordingly

* Added boolean and date Painless scripted field types

* Remove unused (non-working) methods

* Fix lint error

* Added several data-test-subj attributes and used them in the tests

* Reverting previous change to getBarChartData
2016-12-20 12:19:59 -06:00
Spencer
db60725a02 [eslint] enable object-curly-spacing and no-global-assign (#9486)
* [eslint] update eslint config to 0.3.0

* [eslint] autofix

* [fixtures/hits] reformat to comply with max-len lint rule
2016-12-14 13:29:32 -07:00
Spencer
e488a16e6f [eslint] reenable no-extra-semi and quotes rules (#9473)
* [eslint] re-enable no-extra-semi and quotes rules

* [eslint] update to version 0.2.2 of eslint config

* [eslint] autofix
2016-12-13 18:17:47 -07:00
Spencer
2f6654bcec [eslint] re-enable no-var and prefer-const (#9455)
* [eslint] enable no-var and autofix

* [eslint] enable prefer-const and autofix

* [eslint] fix autofix-incompatible no-var and prefer-const violations
2016-12-13 10:44:27 -07:00
Spencer
0c736724b0 Upgrade eslint (#9357)
* upgrade eslint, all related deps, and config files

* replace gruntify-eslint with basic eslint-cli wrapper

* arrow-IIFEs must be invoked outside of the parens

* move import statements before their use

* reindent to satisfy new indentation check algorithm

* place missing semicolon

* ignore copy-pasted decode geohash code

* [grunt/eslint] fix argument spacing

* [gurnt/eslint] add comment about contents of report

* [grunt/tasks] use `export default`
2016-12-12 13:44:18 -07:00
Jim Unger
6e819c11b8 Remove legacy pipelines code (#9397)
* Removes legacy pipelines code from kibana core_plugin

* removes pipelines tests
2016-12-08 16:05:18 -06:00
Peter Pisljar
b19794585b Vislib Point Series updates (#9044)
Multiple changes to the Vislib point series charts. Before each of the chart (bar/area/line) would be an independent unit responsible for drawing all of its parts (axes, titles). This change splits things up so we can have greater control and better code reuse.

converting to ES6
moving axes out of each chart
joining both axes types (x and y) into a common axis type
allowing multiple axes
allowing top/bottom/left/right axis positioning
introducing new chart type 'point_series' which can combine bar/line/area series
making each of the series (bar/line/area) direction independent (vertical/horizontal charts)
2016-12-06 12:55:17 +01:00
Thomas Neirynck
31a6cbab6d Add Tag Cloud Visualization
A tag cloud visualization is a visual representation of text data, typically used to visualize free form text. Tags are usually single words. The font size of word corresponds  with its importance.
2016-11-21 17:03:25 -05:00
CJ Cenizal
f0a8887f7b Update PageObjects for Visualize, Dashboard, and Discover to use data-test-subj selectors for menu items. (#9133)
* Update PageObjects for Visualize, Dashboard, and Discover to use data-test-subj selectors for menu items.

* Run checkPlugins task as part of test:ui:runner task.
2016-11-19 10:08:43 -08:00
Stéphane Campinas
0b877f6313 Exclusion of source fields (#7402)
* added source filtering

* ditched the new 'retrieved fields' tab and added checkbox to exclude a field in the field control

* disable field exclusion checkbox if field is a metafield

* [indexPattern] copy excluded field property when refreshing fields

* [indexPattern/field] move isMetaField consideration into Field

* [indexPattern/edit] invert the "retreived" column, for accuracy

* [indexPattern/field] touchup the field.exclude message

* Fix typo

* [indexPattern] handle index patterns without fields

* [courier/searchSource] auto add source filter for index pattern

* [docTable] remove irrelevant test about source filtering

* [settings/indices] cleanup imports

* [settings/indexPattern/fields] add "field filters" tab

* [imports] fix old testUtils import

* [ui/fieldWildcard] add lib to match names based on field-style wildcards

* [settings/fieldFilters] list filter matches, remove excluded fields from fieldata_fields

* [fieldWildcard] properly escape regexp control chars

* [settings/indexPatterns] mark fields excluded if they match an exclude pattern

* [fieldWildcard] properly bind the regexp to the ends

* [indexPattern] remove unneeded lodash chain

* [settings/indices] use settings-indices- prefix for tab direcives

* corrected rebase on master

* Do not match exclusion on meta/scripted fields. Disable filter bar when on 'Filter fields' tab. Removed exclusion checkbox in the field controls page. Corrected typos. Improved documentation phrasing.

* corrected error in merge with _index_pattern

* removed unused code

* added missing fieldFilters to test dumps

* corrected merge with master

* removed default empty array in the index pattern schema, and check if fieldFilters exists

* restricts the source with the exclusion patterns set for that index pattern

* renamed field filters to source filters and explicitely retrieve the source in the doc controller

* renamed variables/moved files from field filters to source filters

* Renamed _field_types.js to _edit_sections.js to better reflect what it is for. Corrected editting typo. Renamed exclude column name to excluded. Corrected HTML styling. Removed unused config parameters in field_wildcard.

* Removed lines that were specifying the _source field since they were made unnecessary by https://github.com/elastic/kibana/pull/7402/files#diff-d1695ba2026ff89878f9e4f4de683758R50

* moved fielddata_fields source filtering to where it is initialized

* two-column layout for the source filters indices section

* corrected tests

* use the same table layout as in the other index sections.
Filter input correctly restricts source filters.
Do not match .keyword fields.

* Filter out .raw suffix from possible matches.
Removed unused HTML file.
Corrected bug that allowed to save an empty source filter.

* exclude is deprecated, should be excludes

* improved description

* changed as per code review

* removed filtering logic for keyword and raw fields
2016-11-01 10:48:43 -07:00
Lee Drengenberg
8ed3b333b0 Port #8880 to master Support Cloud testing (#8915)
* Support Cloud Kibana UI testing master

* Add xpack file

* cherry-pick 9f63224e77
2016-11-01 10:44:12 -05:00
CJ Cenizal
59d65fd672 Fix bug where the loading indicator was wider than the screen (#8854)
* Fix bug where the loading indicator was wider than the screen, allowing you to drag a dashboard panel very wide and break the UI.
* Refactor kbnLoadingIndicator to be a standalone component.
* Make loadingIndicator fixed position so it doesn't disrupt the layout when it appears and disappears.
* Uncouple from .spinner styles.
* Set a max-width on it.
* Rename Common PageObject getSpinnerDone method to isGlobalLoadingIndicatorHidden.
2016-10-31 16:08:38 -07:00
Peter Pisljar
4755a39a7d Do not use angular debug mode unless in development (#7929)
* fix #7125 - disable angular debug info
2016-10-29 17:12:51 +02:00
CJ Cenizal
b5444c41c8 Integrate Kibana UI Framework CSS.
- Migrate to new localNav component and subcomponent styles.
- Add support for multi-slot transclusion to kbnTopNav.
- Update Dashboard, Discover, Management, Visualize, Dev Tools, Timelion to use kbnTopNav consistently.
- Update these apps to also display localNavDropdowns consistently, including Timepicker (this mostly meant adding titles).
- Add checkLicenses npm script.
- Add .fullWidth utility class and use it to make search forms 100% width.
2016-10-26 21:39:47 -07:00
Felix Stürmer
e100e1f5c9
Add test to verify umlaut in vis name
Relates to #8705
2016-10-19 11:16:43 +02:00
Felix Stürmer
731fe7924a
Use let/const where appropriate 2016-10-17 18:14:05 +02:00
Felix Stürmer
956834430a
Take screenshots after assertions
The screenshots are now taken after the corresponding assertions are
made to make sure they actually depict the expected ui state.
2016-10-17 13:14:32 +02:00
Felix Stürmer
a5fe202432
Extract expected values into separate variables
to match convention
2016-10-14 10:48:50 +02:00
Felix Stürmer
d4f717016f
Replace and remove static sleep calls
Any `sleep()` calls preceding a `verifyChartData()` call seem to be
redundant, because `verifyChartData()` already uses `try()` to avoid
flakyness due to timing.

A few more assertions are now wrapped in `try()` calls to avoid
occasional failures due to the timing of rendering.
2016-10-13 11:26:16 +02:00
Felix Stürmer
88c0b7b75e
Simplify NoResultsTimefilter link test
This reformulates the test case to a simple sequence of actions and
assertions to improve maintainability.
2016-10-13 11:26:16 +02:00
Felix Stürmer
db775687f2
Improve readability of some functional tests
Consistently use async/await and bring tests more in line with "Arrange,
Act, Assert".
2016-10-13 11:26:16 +02:00
Thomas Neirynck
47565e7d37 Merge pull request #8558 from thomasneirynck/chore/cleanup-test
Reintroduce parameter in test

cleanup cruft
2016-10-05 18:45:08 -04:00
Thomas Neirynck
56c130aa80 remove unused vars
do not hardcode css-snippet
2016-10-05 18:34:50 -04:00
Matthew Bargar
5f7117dba2 Remove unnecessary page method 2016-10-05 16:53:49 -04:00
Matthew Bargar
016f881dba Remove Connect Data section from Management app 2016-10-05 15:39:16 -04:00
spalger
a1e62ef048 [functional_tests/try] trim intermediate tryForTime failure logging 2016-10-04 15:56:57 -07:00
spalger
fa6212ab5c [functional_tests/discover] replace some sleep() calls with try()s 2016-10-04 15:31:11 -07:00
spalger
655eb05b03 [functional_tests/try] improve final failure message 2016-10-04 15:29:02 -07:00
spalger
4056fe9d5f Merge branch 'master' of github.com:elastic/kibana into pr/8497 2016-09-30 21:49:21 +02:00
Matthew Bargar
b7fd17b492 Remove other unused Add Data code 2016-09-29 15:14:19 -04:00
Matthew Bargar
b15625b9d8 Remove Upload Data API 2016-09-29 14:55:48 -04:00
Matthew Bargar
f65c9b595b Update expected table headers to fix functional test 2016-09-26 14:40:41 +02:00
Matthew Bargar
1af6b76bd4 Add field_capabilities API
This adds a simple API for getting the searchable/aggregatable status of
a list of fields in a given index, list of indices, or index pattern. In
the future this will probably evolve into a full blown fields info API
that we can use when removing the index pattern mapping cache. For now
though it's built to provide the minimum info needed to fix
https://github.com/elastic/kibana/issues/6769

Usage:

The API exposes a single GET endpoint.

```
GET /api/kibana/{indices}/field_capabilities
```

`indices` can be a single index, a comma delimited list, or a wildcard
pattern

Example response:

```
{
  "fields": {
    "imsearchable": {
      "searchable": true,
      "aggregatable": false
    },
    "imaggregatable": {
      "searchable": true,
      "aggregatable": true
    },
  }
}
```
2016-09-23 10:30:44 -04:00
spalger
752c3339c2 [console] add functional tests to ensure that settings work 2016-09-22 08:48:34 -07:00
spalger
5916354144 [functionalTests/console] fix test subject selector by focusing on help-specific button 2016-09-21 16:35:49 -07:00
spalger
52dbb264d2 [functionalTests] prevent test failure by retrying find call 2016-09-20 15:40:51 -07:00
spalger
6b220cfc2b [functionalTests] implement common.findAllTestSubjects() helper 2016-09-19 18:44:48 -07:00
spalger
69fb068d55 [functionalTests] implement common.tryMethod() helper 2016-09-19 18:43:59 -07:00
Jim Unger
aa82360788 Merge pull request #8135 from BigFunger/add-data-remove-pipeline
Remove pipelines from ingest endpoint, and import csv wizard
2016-09-15 13:16:40 -05:00
CJ Cenizal
2fb22ed124 Fix functional tests for Share UI. 2016-09-14 12:58:00 -07:00
spalger
7d7ef27e3a [tests/config] fix console url 2016-09-12 17:15:25 -07:00
spalger
a2d37fca98 [pageObjects/console] update selectors to use test subjects 2016-09-12 17:15:21 -07:00
Lee Drengenberg
1cebdd75cc Merge pull request #8154 from LeeDr/orderAggsByTerm8141
Test order aggs by term #8141
2016-09-07 11:05:21 -05:00
LeeDr
d6e620accc Removed bogus pageHeader function names 2016-09-07 09:03:15 -05:00
Jim Unger
9437a02df8 Merge branch 'master' into add-data-remove-pipeline 2016-09-06 15:59:06 -05:00
LeeDr
e4da8a6b93 Remove unused remote vars. 2016-09-05 13:41:22 -05:00
Rashid Khan
589ea55f7e Merge branch 'master' of github.com:elastic/kibana into migrate/timelion 2016-09-02 09:20:49 -07:00
LeeDr
fb526944ff Added missing selectOrderBy in visualize_page, and try loop around getting line chart data 2016-09-02 11:20:34 -05:00
LeeDr
218f29f051 Test order aggs by term #8141 2016-09-02 09:35:49 -05:00
Jim Unger
a35aac2c5d Removed pipelines from ingest endpoint, and import csv wizard 2016-08-31 12:36:55 -05:00
LeeDr
a66fc9d52d return promise from updateConfigDoc 2016-08-30 15:11:04 -05:00
LeeDr
4cad856136 Work-around #7496 and/or #7055 by re-setting default index pattern 2016-08-30 15:11:03 -05:00
LeeDr
4bc86f4327 Changed required field data pane width and increased window width for changes in side bar. 2016-08-30 14:19:15 -05:00
Rashid Khan
8e5ef7c5b2 Merge branch 'master' of github.com:elastic/kibana into migrate/timelion 2016-08-30 11:11:03 -07:00
Rashid Khan
1c47159939 Merge branch 'master' of github.com:elastic/kibana into migrate/timelion 2016-08-29 09:09:01 -07:00
Matthew Bargar
6c8ec66b3a Add a new GET script languages API endpoint
To provide additional language options for scripted fields, Kibana needs
to know what languages are available for inline scripting in
Elasticsearch. This new Kibana API grabs up to date information from
Elasticsearch and provides it in an easy to digest format for the UI.

The response body from the API is a simple JSON array with a list of
languages that are enabled for inline scripting. The API also filters
out languages that don't make sense in scripted fields, like 'mustache'.

An example request might look like this:

`GET /api/kibana/scripts/languages`

200 OK
`['expression', 'painless']`
2016-08-29 11:26:27 -04:00
Tyler Smalley
2cf97d6c24 Specify API version for Elasticsearch client in ScenarioManager
This change specifically comes after the deprecation of POST for creating an index

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-08-25 06:54:54 -07:00
Rashid Khan
88cb02c2e6 Add timeseries chart 2016-08-15 09:36:24 -07:00
LeeDr
409ec9d55c Merge branch 'master' into addTileMapTests 2016-08-11 12:42:52 -05:00
LeeDr
168167bfee Removed getZoomLevel functionality and replaced with more data checks. 2016-08-11 11:30:43 -05:00
Jonathan Budzenski
b3c6a13bad
[api tests] update pipeline tests to grab id from object keys instead of array index 2016-08-09 11:36:51 -05:00
LeeDr
069f335c0b Several new TileMap tests for 10 zoom levels, Fit Data Bounds, and save zoom level 2016-08-04 12:15:23 -05:00
Lee Drengenberg
4469e88ea7 Merge pull request #7701 from ppisljar/fix/7332
fix #7332 - saving vis with % in name causes error
2016-08-03 15:36:08 -05:00
ppisljar
30fcbb636c fixing test 2016-07-27 15:20:05 +02:00
ppisljar
2f4e5aa0fa removing screenshot from test 2016-07-26 18:03:30 +02:00
ppisljar
06bb7ab10c updating tests 2016-07-26 10:43:59 +02:00
Stéphane Campinas
48e7c94934 corrected CSS selection 2016-07-21 11:47:25 +01:00
Jonathan Budzenski
b053aad5df [tests] Rename apps option to appSuites so we don't override the intern.apps object 2016-07-19 17:08:01 -05:00
Jonathan Budzenski
e4b584256d [tests] Add ui test application filtering 2016-07-19 15:30:25 -05:00
ppisljar
a484283837 - added analyze_wildcard to query body 2016-07-18 16:13:42 +02:00
ppisljar
ef372ca308 - updated the test (wont pass until # is fixed) 2016-07-13 16:04:04 +02:00
ppisljar
25d34d012c updating tests to test with % in visualization name 2016-07-13 13:28:19 +02:00
LeeDr
2953d84c6f change other headerPage to header 2016-07-06 17:14:12 -05:00
LeeDr
2945d75df6 Fix a headerPage typo, un-nest some promises. 2016-07-06 16:44:44 -05:00
LeeDr
39bcb7f073 Merge branch 'master' into fixGoToPageTiming 2016-07-06 15:47:16 -05:00
LeeDr
7f5590aa5b Changes to fix settings page failure 2016-07-06 15:46:00 -05:00
spalger
8adaecb9be [ci] source the setup script instead of executing it 2016-07-05 12:46:53 -07:00
spalger
e98c3d4c42 [ci] tweak ci scripts to debug 2016-07-05 11:08:22 -07:00
LeeDr
a8c1b4e804 Try to fix another staleElementReference in data table test 2016-07-01 17:40:01 -05:00
spalger
ee29dc6d02 [ci] make jenkins selenium script executable 2016-07-01 12:32:03 -07:00
spalger
b7c8db694a [ci] run the unit tests with xvfb-run 2016-07-01 12:22:39 -07:00
CJ Cenizal
ce9eb95901 Merge pull request #7558 from cjcenizal/refactor/functional-tests-page-objects
Migrate all functional tests to use PageObjects module.
2016-07-01 12:04:23 -07:00
spalger
55d95790ea [ci] call xvfb-run before selenium tasks 2016-07-01 11:35:56 -07:00
spalger
7df6040536 [ci] split unit and selenium tasks into separate jenkins scripts 2016-07-01 11:31:02 -07:00
spalger
995c408410 [ci] add script for snapshot build job 2016-06-30 15:41:47 -07:00
LeeDr
583c89012c Add a debug log so we can tell what page we're going to if we fail 2016-06-30 15:13:56 -05:00
spalger
cb0659f98d [ci] move ci setup tasks into source control
Until now, the ci setup tasks were stored in the Jenkins job configuration. This moves the setup into source control so that jenkins can be told to execute `./test/scripts/jenkins_{JOB_TYPE}.sh` no matter what branch of kibana it is dealing with.
2016-06-30 12:50:56 -07:00
LeeDr
cfe85639fc Add getSpinnerDone after clicking a new page in index pattern field list 2016-06-30 14:44:57 -05:00
CJ Cenizal
733a52d00a Remove page object references from support/index. 2016-06-29 06:02:00 -07:00
CJ Cenizal
499e659adb Remove empty constructors from Page Object classes. 2016-06-28 09:12:22 -07:00
CJ Cenizal
91e919d1c5 Convert all page objects to be ES6 classes and rely on PageObjects module instead of support. 2016-06-27 17:22:47 -07:00
CJ Cenizal
0f397f2bc4 Migrate dashboard functional tests to use PageObjects. 2016-06-27 16:00:39 -07:00
CJ Cenizal
dc51ad098f Migrate console functional tests to use PageObjects. 2016-06-27 15:57:58 -07:00
CJ Cenizal
e7189e5349 Migrate visualize functional tests to PageObjects. 2016-06-27 15:51:29 -07:00
CJ Cenizal
4cc868c932 Migrate management functional tests to use PageObjects. 2016-06-27 15:39:40 -07:00