Commit graph

437 commits

Author SHA1 Message Date
liza-mae
53d0c6758a
skip test (#20993) 2018-07-19 12:01:38 -06:00
liza-mae
c7eb1e2aa1
[6.3] Improve visualization tests (#20783)
* Improve test flakiness for histogram and tag cloud tests.
Skip titlemap test.

* Add visualize page object

* Update histogram tests

* Enable skipped tests

* fix lint errors

* Update shakespeare test navigation to visualize

* Revert selector for selectAggregation

* Unskip vega test

* increase sleep
2018-07-18 07:33:21 -06:00
Tim Roes
9369fccbcc
[6.3] fixing disabled aggs (#18796) (#20450)
* fixing disabled aggs (#18796)

* adding dissabled aggs functional tests (#20454)

* Add missing visualize page method in 6.3
2018-07-05 17:27:59 +02:00
liza-mae
3ef4a45806
Fix flaky context _size tests and bug in context page object file (#20254) (#20392)
* Update getSuccessorLoadMoreButton() to point to correct selector
Add a sleep in navigateTo() and remove refresh()
Add methods to click predecessor and successor load more buttons
Update waitUntilContextLoadingHasFinished to check buttons are enabled and displayed
Update tests to use click methods

* Fix lint issues
2018-07-02 17:55:14 -06:00
Lee Drengenberg
7ae7845abd
[6.3] ES 6 visualize tests (#20178) (#20281)
* merge

* add missing async

* add missing async

* eslint cleanup

* fix vertical bar chart and data table tests

* es6 syntax and un-skip test
2018-07-02 14:38:48 -05:00
Rashmi Kulkarni
d44abbbc69
[6.3] Conversion to ES6 - Discover tests (#20112) (#20159)
* changes after fixing merge conflicts into 6.3

* incorporated review changes
2018-06-22 12:21:57 -07:00
Rashmi Kulkarni
737b987afc
Console test modified for ES6 conversion (#20048) 2018-06-19 12:53:50 -07:00
liza-mae
1d70939f6d
Make timelion tests less flaky (#19996) (#20011)
* Update sleeps in timelion tests

* Add comment
2018-06-18 14:06:49 -06:00
liza-mae
709e9acbbb
Add option to exclude tests in functional test runner (#19806) (#19851)
* Add option to exclude tests in functional test runner

* Move tag to end of test name
2018-06-14 04:22:49 -06:00
liza-mae
dfec4e5e35
Add wait for page to load for dashboard test (#19828) 2018-06-12 12:54:25 -06:00
Tim Roes
6659b82b77
[6.3] Fix broken linked save searches (#19722) (#19725)
* Fix broken linked save searches (#19722)

* Fix bug

* Retry navigation

* skip 'linked saved searched' tests

These tests pass over and over locally but fair (every time?) on Jenkins :-(

Since this is a blocker PR for the release, and since these tests pass locally, I'm going to `skip` these new tests for now.
2018-06-08 08:54:46 +02:00
liza-mae
269e616609
Update browser window size for console test (#19664) (#19667) 2018-06-04 18:16:44 -06:00
Thomas Neirynck
ab50bfc3fc
Do not handle precision changes when no aggregations have been configured on the coordinate map (#18826) (#18860) 2018-05-07 10:29:11 -04:00
spalger
4bdcc9aa44 disable flaky test
(cherry picked from commit 6667c63a91)
2018-05-04 12:21:03 -07:00
Spencer
a8676bd2b1 Fix loading indicator for uiSettingsClient (#18694)
* [ui/chrome/loadingIndicator] expose VanillaJS hooks for gloabl loading indicator

* [ui/uiSettingsClient] increment/decrement loading count while request in progress

* [ui/loadingIndicator] fix HeaderPage.isGlobalLoadingIndicatorHidden()

* [ui/loadingIndicator] remove rxjs, fix tests

* [ui/loadingIndicator] improve docs

* [ui/loadingIndicator] remove needless unmounts

* [ui/loadingCount] correct typo

* [functionalTests/headerPage] awaitGlobalLoadingIndicatorHidden

* [ui/loadingCount] send subscribers the loading count on subscription

* [ui/loadingIndicator] remove error throwing, cleanup render

(cherry picked from commit d35316642d)
2018-05-02 16:39:30 -07:00
Tim Roes
608cd39d25
Fix map not refetching correctly (#18600) (#18604) 2018-04-26 17:02:50 +02:00
Stacey Gammon
64083ca284
Add failing test (#17688) (#17744) 2018-04-17 12:37:50 -04:00
Chris Cowan
84ad08e70d [TSVB] Math Aggregation (two point oh) (#16965)
* Revert "Remove MathJS Feature (#15652)"

This reverts commit 43bf1dbf4a.

* replacing math with tinymath

* pining version

* updating yarn.lock

* Fixing Prettier mis formatting

* fixing tests

* Adding unsupported agg back

* Adding functional test for math aggregation

- Fixing bad tests
- Resetting page for every test suite (why donesn't beforeEach work?)
- Adding test for Math agg

* Trying to fix values (due to inconsistencies in env)
2018-04-11 14:17:03 -07:00
Tim Roes
9b23529fc5
Fix flaky lab mode test (#17622) (#17652) 2018-04-11 10:24:40 +02:00
Stacey Gammon
c149ab9213
Gain extra info when nested query visualization test fails (#17390) (#17494)
* add more output

This will let us know if the filter is failing to be added on the
visualization before being saved.

* run 20x

* go back to single run
2018-04-02 12:41:46 -04:00
Bhavya RM
c4e71d733a
Test for ensuring that options *hide all panel titles" work on dashboards. (#17440) (#17459)
Test for making sure option hide all panel titles work
2018-03-29 19:13:49 -04:00
Bhavya RM
544c26b659
Functional tests to add index alias reference (#17343) (#17406)
* Functional tests to add index alias reference (#17343)
Test to make sure Kibana handles index alias reference.
2018-03-27 14:48:03 -04:00
Stacey Gammon
0990f564ea
De-couple redux panels object with app state (url) panels (#17361) (#17400)
* separate implicit connection between app state panels and redux tree panels.

They are now two different objects.  This will help pave the way to
removing so much apostate in view mode where it isn’t necessary

* remove console output

* fix tests and propagate dashboard title & description

* Clean up with review comments

* use reduce instead of map so the array becomes an object
2018-03-27 11:27:20 -04:00
Rashmi Kulkarni
54f3a803a8
Large fileds 6.x (#17404)
* adding large_string_test (#17312)

* adding large_string_test

* removed a failing test, modified the existing one

* new line at the end of mappings.json

* removed the data.json file and also removed the navigateTo() and clickKibanaIndices() as createIndexPattern() takes care of it

* more modifications

* Test for Large number of Fields in Kibana.  (#16237)

* test huge data

* new file for testing large number of fields
*  testing large fields
* large_fields_test
* add the unload of es_archiver
* incorporated the changes in kibana.yml
* Revert "incorporated the changes in kibana.yml"
This reverts commit 8682121678.
* cleanup
* code simplification
* removed commented code
2018-03-26 13:29:39 -07:00
Rashmi Kulkarni
6bc6c6a250
adding large_string_test (#17312) (#17371)
- Loads a huge PDF book as a large string via es_archiver
- Creates index pattern
-Navigates to discover and checks the Highlighted search terms
-------------------------------------------------------------------------------------------------


* adding large_string_test

* removed a failing test, modified the existing one

* new line at the end of mappings.json

* removed the data.json file and also removed the navigateTo() and clickKibanaIndices() as createIndexPattern() takes care of it

* more modifications
2018-03-23 12:48:54 -07:00
Matt Bargar
4f2fbe7fb6
[6.x] Add query enhancements opt-in switch to query bar (#17232) (#17353)
* Add query enhancements opt-in switch to query bar (#17232)

Makes our language updates more visible to users and removes mentions of Kuery as a separate language. Users still get the old lucene experience by default, but have the option to opt-in to "experimental query features" directly in the query bar. Goal is to get more feedback by making these new features more prominent and less of a jump from lucene.

* fix test
2018-03-22 18:00:25 -04:00
CJ Cenizal
e4a6cf2cca
Improve feedback in Discover (#16771) (#17354)
* Add Painless scripted field error callout to Discover. Remove recursive beginSegmentedFetch call.
* Add getDocLink service. EUIfy Discover 'no results' state.
* Rename initSegmentedFetch to handleSegmentedFetch to differentiate it from beginSegmentedFetch.
2018-03-22 13:06:03 -07:00
Stacey Gammon
65f7f638c4
Don't use transforms (#17175) (#17308)
* Don't use transforms

* dismiss toasts so they don't interfere with the snapshot tests

* try again

* Fix styling during expanded panel mode

* See if putting the sleep back fixes the build.

* fix typo
2018-03-21 16:37:03 -04:00
Nathan Reese
c659eca14f fix dashboard grid test timing issue (#17250)
* add 50 extra pixel to move to ensure panel goes above first panel
2018-03-19 19:52:31 -07:00
Lee Drengenberg
9afc7511a9
Getting Started - Shakespeare (#16827) (#17164)
* WIP - add shakespeare data for getting started guide

* Refactor of getLineChartData, getBarChartData, getAreaChartData

* Added changing extents and test

* Fix opening axis options

* Change precision from 8 to 7

* lower precision to 6

* Fix index pattern creation

* update from review, remove comments, add others
2018-03-14 17:01:40 -05:00
Lee Drengenberg
0d56e9a9dd
Save html for failed tests (#16850) (#17160)
* When failure, log URL and save page source

* log Taking screenshot  at info level

* Force a failure, then revert this

* [ftr/failureDebugging] create failure debugging service

* Cleanup and create the failure_debug/html dir, strip special chars from filenames

* Remove a debugging log

* refactored replacing invalid filename chars

* Revert forced failing tests
2018-03-14 15:42:04 -05:00
Jen Huang
b8fcf06336
Change indexed fields table to use EuiToolTip and display 10 rows by default (#17074) (#17129) 2018-03-14 09:27:37 -07:00
spalger
ac060f450e [functionalTests/context] disable flaky test 2018-03-13 13:23:14 -07:00
Nathan Reese
74982f83bd
Dashboard smaller panel grid dimensions (#16763) (#17105)
* change panel height from 100 to 20

* scale default height

* change number of grid columns to 48 so there is better control of panel width

* remove input controls resize test since its using EUI components and no longer needs to be functionally tested

* fix dashboard_grid_container test

* clean up rebase artifacts

* scale x and y in panel_state test

* make DASHBOARD_GRID_HEIGHT a constant
2018-03-12 09:37:16 -06:00
Jen Huang
03d9c4218e
React/EUI-ify indexed fields table (#16695) (#17068)
* React/EUI-ifying indexed fields table
2018-03-09 09:17:55 -08:00
Chris Roberson
27b0e88e32
Await for config changes and re-enable tests (#17016) (#17044) 2018-03-08 14:22:21 -05:00
Stacey Gammon
9245cf5def
Investigate flaky dashboard state test (#16977) (#17020)
* Increase test runs to reliably trigger failure

* Determine where dashboard is failing to pop into view mode

* Drop down to only one check

* Go back to only one run of state tests
2018-03-07 17:14:41 -05:00
Stacey Gammon
6b6f9afac4
Fix embeddable config url updates (#15728) (#17021)
* add failing test that would have caught this situation

* Implement onEmbeddableConfigChanged to pick up url changes from soft refreshes

* Add tests for legend and pie slice color as well as removing uiState keys to ensure it resets the config values

* address removing state from url as well as setting it.

* Fix up tests and add a link to the legend issue

* only emit once

* use for in, use better mocked clearAllKeys function

* Remove switch to setSilent

* Adjust test so it fails because of bug found where two charts will both have their slice colors updated

* Embeddable should only listen for changes to their panel's config state

* Default embeddable config to an empty object when creating a new embeddable
2018-03-07 17:14:32 -05:00
Stacey Gammon
74a4bc5c15
Tests are failing consistently (#16995) (#17008) 2018-03-07 13:31:43 -05:00
Matt Bargar
5317c733a4
Update Kuery Syntax (#15857) (#17005)
This PR evolves Kuery into a simplified, more lucene-like language. In a follow up PR we plan on getting rid of the language switcher dropdown and instead add a checkbox that will allow users to opt-in to this syntax, which will feel less like a separate language and more like a set of enhancements to the existing lucene query syntax.

This PR also updates the simple grammar to solve the following:

* Wildcards in field names
* "is one of" shorthand (e.g. foo:(bar OR baz OR qux))
* Don't split on whitespace (require explicit AND/ORs, case insensitive)
* "exists" query (e.g. foo:*)
* Improved range query shorthands (e.g. foo <= 1)
* Wildcard queries

Since this new syntax is simpler and does not support every filter type like old Kuery did, this PR also brings back the filter bar when kuery is selected in the language picker.

See the documentation updates in this PR if you need an overview of the new syntax (and let us know if the documentation is lacking).
2018-03-07 10:13:45 -08:00
Bhavya RM
496e94a88e
Sanity tests for table viz in TSVB (#16880) (#16897)
Sanity test for table viz in TSVB
2018-02-23 18:33:36 -05:00
Nathan Reese
7eb2bfc2ba
Update filterEditor directive to use default index pattern when none are provided. (#16235) (#16893)
* use default index pattern when filter-editor is not passed any index patterns

* add functional test

* pass indexPatterns to filterBar directive

* handle check for [undefined]

* use _.compact to test if index patterns are provided

* simplify areIndexPatternsProvided
2018-02-23 12:37:58 -07:00
Bhavya RM
9e885e88be
adding gauge and topN sanity tests for TSVB (#16583) (#16651)
adding two basic sanity test automation for gauge and Top N
2018-02-09 15:11:10 -05:00
Nathan Reese
d43677c451
Nested input controls (#16407) (#16612)
* add input to select parent control

* move lineage logic into seperate file for easier testing

* move parent candidate logic into seperate file

* decouple control factory and control initialization

* disable control if parent not set

* inherite search source from ancestors to have them filter values

* call fetch when query filter is updated for filter value changes

* delete filters when control has ancestor without value

* avoid fetching option list when ancestors have not changed

* add functional tests for nested controls

* remove unneeded file

* fix jest tests, add another test case to functional tests, update 'Parent' field copy

* add more jest test coverage

* fix useTimeFilter functionallity

* add better error message when fetch is not defined by subclass

* pass filters array instead of search source hierarchy

* only modify queryFilter when filters are submitted

* compare value array instead of concatinated string to determine if ancestors have changed

*  use ES2016 syntax for array concatination
2018-02-08 11:30:35 -07:00
Chris Roberson
43ea098107
[Management] Fix importing objects connected to saved searches that contain conflicts (#16004) (#16492)
* Handle cases of importing objects that are connected to searches, but error out due to the searches index pattern not found

* Add tests and fix flaky ones
2018-02-02 16:17:35 -05:00
CJ Cenizal
8b6ca9f6f7
Remove GlobalToastList wrapper directive. Add onChange callback. (#16375) (#16405)
* Remove GlobalToastList wrapper directive. Add onChange callback.
* Skip flaky tag cloud test.
2018-01-30 10:34:00 -08:00
Nathan Reese
154b096d4c
EUI input controls visualization (#16210) (#16404)
* update jest tests as best as possible - found some bugs that need to be addressed

* use EuiAccordion to hide/show control editor

* set control editor to be open on load

* small changes

* fix editor jest tests

* update visualization components to EUI

* fix jest tests and updated range control to EUI

* fix bug in range control input logic

* fix button layout

* fix dashboard grid resize test

* add space between panels, change button order, switch to sort icons

* remove style attribute from component, fix spelling of id
2018-01-30 11:19:23 -07:00
Tim Roes
eceb08d407
[6.x] Fix issue with disabled lab mode (#16351) | Properly wait for search list to load (#16388) (#16394)
* Fix issue with disabled lab mode (#16351)

* Fix saved object finder issue

* Add functional test

* Properly wait for search list to load (#16388)
2018-01-30 16:31:31 +01:00
Peter Pisljar
4903ab4653
visualize editor should not show if embed is set to true in url (#16310) (#16361) 2018-01-30 10:12:35 +01:00
CJ Cenizal
ff9caf9675
Fix assertions against toasts in Dashboard and Discover functional tests. (#16336) (#16344) 2018-01-28 17:53:26 -08:00