Commit graph

13 commits

Author SHA1 Message Date
jasper
9a7e105ec8 Stabilize tests involving absolute timepicker (#10347)
Backports PR #10308

**Commit 1:**
Stabilize tests involving absolute timepicker

The asynchronous nature of angular's digest cycle and the page rendering
in the browser can lead to situations in which
`isGlobalLoadingIndicatorHidden()` returns true because the loading
triggered by the previous action has not yet started. In this case
subsequent actions incorrectly assume the loading has already been
completed. This is probably responsible for the flakiness described in #10302.

The newly introduced `waitUntilLoadingHasFinished` first waits for a
duration up to `defaultTimeout` for the loading indicator to appear
before waiting for it to be hidden again. In the best case this will
reduce the false positive rate of `setAbsoluteTimerange()`. In the worst
case the function will wait `defaultTimeout` longer than when just using
`isGlobalLoadingIndicatorHidden`.

fixes #10302

* Original sha: 345421bd63
* Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-02-13T15:05:50Z

**Commit 2:**
Use findTestSubject

* Original sha: 3a2f3fc9eb
* Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-02-13T16:02:08Z

**Commit 3:**
Replace all usages of isGlobalLoadingIndicatorHidden

* Original sha: 27ad2447a5
* Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-02-13T17:49:56Z

**Commit 4:**
Introduce timeout argument to findTestSubject

* Original sha: 60ab85a295
* Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-02-14T16:05:28Z
2017-02-14 20:34:18 +01:00
Spencer
9ed7e81b62 Backport eslint updates to 5.x (#10139)
* [eslint] update eslint config to 0.3.0

* [eslint] autofix

* [fixtures/hits] reformat to comply with max-len lint rule

* [eslint] enable no-var and autofix

* [eslint] enable prefer-const and autofix

* [eslint] fix autofix-incompatible no-var and prefer-const violations

* [eslint] enable quotes+no-extra-semi and autofix
2017-02-06 21:27:07 -07:00
jasper
4f85268def Fix functional tests - index fields failure (#10211)
Backports PR #8363

**Commit 1:**
[functionalTests] prevent test failure by retrying find call

* Original sha: 52dbb264d2
* Authored by spalger <email@spalger.com> on 2016-09-20T01:41:14Z
2017-02-06 17:12:59 -08:00
Lee Drengenberg
4a586870c5 5.x backport #9242 New scripted field tests (#9700)
* 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
2017-01-02 16:45:45 -06:00
jasper
b3e0138d66 Exclusion of source fields (#8920)
Backports PR #7402

**Commit 1:**
added source filtering

* Original sha: e7204bef63
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-01-12T10:08:35Z

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

* Original sha: b228c66c01
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-01-13T14:44:38Z

**Commit 3:**
disable field exclusion checkbox if field is a metafield

* Original sha: 0d062209fb
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-01-15T15:39:47Z

**Commit 4:**
[indexPattern] copy excluded field property when refreshing fields

* Original sha: c3c1d4823b
* Authored by spalger <spalger@users.noreply.github.com> on 2016-01-21T16:01:48Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T20:40:15Z

**Commit 5:**
[indexPattern/field] move isMetaField consideration into Field

* Original sha: 5b0b00adfb
* Authored by spalger <spalger@users.noreply.github.com> on 2016-01-21T16:22:52Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T20:44:37Z

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

* Original sha: 1dee6f173f
* Authored by spalger <spalger@users.noreply.github.com> on 2016-01-21T16:24:44Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T20:47:21Z

**Commit 7:**
[indexPattern/field] touchup the field.exclude message

* Original sha: ec0c3341d1
* Authored by spalger <spalger@users.noreply.github.com> on 2016-01-21T16:25:24Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T20:47:23Z

**Commit 8:**
Fix typo

* Original sha: 062931a3f4
* Authored by Spencer <spalger@users.noreply.github.com> on 2016-01-21T19:33:14Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T20:48:53Z

**Commit 9:**
[indexPattern] handle index patterns without fields

* Original sha: 9d70208f56
* Authored by spalger <spalger@users.noreply.github.com> on 2016-01-22T18:27:45Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T20:51:11Z

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

* Original sha: 5a97b6b668
* Authored by spalger <spalger@users.noreply.github.com> on 2016-01-23T01:08:52Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:04:09Z

**Commit 11:**
[docTable] remove irrelevant test about source filtering

* Original sha: 8211990a01
* Authored by spalger <spalger@users.noreply.github.com> on 2016-02-12T08:17:56Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:04:11Z

**Commit 12:**
[settings/indices] cleanup imports

* Original sha: fa5b22d9ab
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T00:29:36Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:06:11Z

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

* Original sha: 7819fa984d
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T06:07:31Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:20Z

**Commit 14:**
[imports] fix old testUtils import

* Original sha: d4b9c116a6
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T06:08:46Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:24Z

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

* Original sha: d75a63fa34
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T08:02:01Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:24Z

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

* Original sha: 08f8fd7e0d
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T08:59:39Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:24Z

**Commit 17:**
[fieldWildcard] properly escape regexp control chars

* Original sha: 385a0620c0
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T09:13:21Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:25Z

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

* Original sha: da62b2a761
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T09:29:03Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:25Z

**Commit 19:**
[fieldWildcard] properly bind the regexp to the ends

* Original sha: e89ceeabdc
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T23:59:06Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:25Z

**Commit 20:**
[indexPattern] remove unneeded lodash chain

* Original sha: 14d5458bb7
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-06T00:00:28Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:25Z

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

* Original sha: dc53a103bc
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-06T00:03:45Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:12:19Z

**Commit 22:**
corrected rebase on master

* Original sha: 4be31b2878
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:29:19Z

**Commit 23:**
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.

* Original sha: 79e87ca3ae
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-09T08:14:12Z

**Commit 24:**
Merge branch 'master' into issue4366

* Original sha: 984d3349ba
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-09T08:29:38Z

**Commit 25:**
corrected error in merge with _index_pattern

* Original sha: 3375fd1f02
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-09T08:35:25Z

**Commit 26:**
removed unused code

* Original sha: 6a0b331297
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-09T08:56:56Z

**Commit 27:**
Merge branch 'master' into issue4366

* Original sha: 81a56f9f05
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-09T21:24:12Z

**Commit 28:**
added missing fieldFilters to test dumps

* Original sha: c209ce3165
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-11T09:14:10Z

**Commit 29:**
Merge branch 'master' into issue4366

* Original sha: 95114865b9
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-13T08:57:50Z

**Commit 30:**
added the management section refactoring from master

* Original sha: 9e32bbc2cf
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-30T09:14:19Z
2016-11-01 10:56:28 -07:00
Elastic Jasper
0690fcd5ad Backport PR #8559
---------

**Commit 1:**
Remove Connect Data section from Management app

* Original sha: 016f881dba
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-05T19:39:16Z

**Commit 2:**
Fix path mentioned in comment

* Original sha: 66488f5d6b
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-05T20:50:52Z

**Commit 3:**
Remove unnecessary page method

* Original sha: 5f7117dba2
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-05T20:53:49Z
2016-10-05 17:27:20 -04:00
Elastic Jasper
7a13d9ebbc Backport PR #8500
---------

**Commit 1:**
Update expected table headers to fix functional test

* Original sha: f65c9b595b
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-09-26T12:40:41Z

**Commit 2:**
[indexPatterns] add workaround for elastic/elasticsearch#20707

* Original sha: 22c6f7c55c
* Authored by spalger <email@spalger.com> on 2016-09-30T10:21:07Z
2016-09-30 06:53:27 -04:00
LeeDr
d6e620accc Removed bogus pageHeader function names 2016-09-07 09:03:15 -05:00
CJ Cenizal
4cc868c932 Migrate management functional tests to use PageObjects. 2016-06-27 15:39:40 -07:00
CJ Cenizal
31137131f3 Refactor functional tests, particularly support/index.js.
- Each page object exposes an init method, which accepts a reference to remote.
- Extract page objects from support/index.js into PageObjects.js.
- PageObjects.js also exposes an init method, which accepts a reference to remote. It’s responsible for passing this onto all of the page object instances.
- The functional tests index file calls PageObjects.init and provides the remote reference.
- Extract log and try method functionality from common.js into Log and Try utils.
- Remove common.js dependency from es_client.js and elastic_dump.js.
- Partially convert “discover” tests to use PageObjects, as a demonstration.
2016-06-23 10:24:17 -07:00
Tyler Smalley
14ef79717c Resolves tests for management redirect changes
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-06-21 23:36:35 -07:00
LeeDr
e558f00c42 minor change in settings test might fix previous failure 2016-06-16 14:30:01 -05:00
Tyler Smalley
91b6d92529 Changes settings to management
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-06-14 16:43:12 -07:00