Skip to content

[TSVB] Add more functional tests for Gauge and TopN#105361

Merged
DianaDerevyankina merged 8 commits intoelastic:masterfrom
DianaDerevyankina:TSVB-functional-tests-gauge-topN
Jul 21, 2021
Merged

[TSVB] Add more functional tests for Gauge and TopN#105361
DianaDerevyankina merged 8 commits intoelastic:masterfrom
DianaDerevyankina:TSVB-functional-tests-gauge-topN

Conversation

@DianaDerevyankina
Copy link
Copy Markdown
Contributor

@DianaDerevyankina DianaDerevyankina commented Jul 12, 2021

Summary

Added functional tests for TSVB Gauge and TopN covering cases mentioned here (#102606)

image
image

For maintainers

@DianaDerevyankina DianaDerevyankina self-assigned this Jul 12, 2021
@DianaDerevyankina DianaDerevyankina linked an issue Jul 13, 2021 that may be closed by this pull request
@DianaDerevyankina DianaDerevyankina added Feature:TSVB TSVB (Time Series Visual Builder) release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v7.15.0 v8.0.0 labels Jul 13, 2021
@alexwizp alexwizp requested a review from VladLasitsa July 16, 2021 08:27
Comment on lines +362 to +374
await this.visChart.waitForVisualizationRenderingStabilized();
const [, gaugeColoredCircle] = await this.find.allByCssSelector(
'[data-test-subj="tvbVisGaugeContainer"] circle'
);
return await gaugeColoredCircle.getAttribute('stroke');
}

public async getGaugeInnerColor(): Promise<string> {
await this.visChart.waitForVisualizationRenderingStabilized();
const gaugeInnerCircle = await this.find.byCssSelector(
'[data-test-subj="tvbVisGaugeContainer"] circle'
);
return await gaugeInnerCircle.getAttribute('stroke');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can union these methods.

Copy link
Copy Markdown
Contributor

@VladLasitsa VladLasitsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

Comment on lines +759 to +764
public async setFilterRatioNumerator(numerator: string) {
const numeratorInput = await this.find.byCssSelector(
'.tvbAggRow [data-test-subj="queryInput"]'
);
await numeratorInput.type(numerator);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have this method in other PR (#105060)

public async getGaugeColor(): Promise<string> {
await this.visChart.waitForVisualizationRenderingStabilized();
const [, gaugeColoredCircle] = await this.find.allByCssSelector(
'[data-test-subj="tvbVisGaugeContainer"] circle'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VladLasitsa @dziyanadzeraviankina is it possible to avoid of using css selectors?

Copy link
Copy Markdown
Contributor

@VladLasitsa VladLasitsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DianaDerevyankina
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

return await gaugeCount.getVisibleText();
}

public async getGaugeColor(type: undefined | 'Inner' = undefined): Promise<string> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I right that we have only 2 cases 'Inner' and not-'Inner'. If it's true maybe we should use boolean instead?

@DianaDerevyankina
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/monitoring/elasticsearch/nodes_mb·js.Monitoring app Elasticsearch nodes listing mb with only online nodes should filter for non-existent index

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 3 times on tracked branches: https://github.com/elastic/kibana/issues/104265

[00:00:00]       │
[00:00:00]         └-: Monitoring app
[00:00:00]           └-> "before all" hook in "Monitoring app"
[00:06:38]           └-: Elasticsearch nodes listing mb
[00:06:38]             └-> "before all" hook in "Elasticsearch nodes listing mb"
[00:07:51]             └-: with only online nodes
[00:07:51]               └-> "before all" hook for "should have an Elasticsearch Cluster Summary Status with correct info"
[00:07:51]               └-> "before all" hook for "should have an Elasticsearch Cluster Summary Status with correct info"
[00:07:51]                 │ debg set roles = monitoring_user,kibana_admin
[00:07:51]                 │ debg creating user test_user
[00:07:51]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [test_user]
[00:07:51]                 │ debg created user test_user
[00:07:51]                 │ debg TestSubjects.exists(kibanaChrome)
[00:07:51]                 │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:07:52]                 │ debg TestSubjects.find(kibanaChrome)
[00:07:52]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:07:52]                 │ debg browser[INFO] http://localhost:61131/app/monitoring?_t=1626855870918#/elasticsearch/nodes?_g=(cluster_uuid:YCxj-RAgSZCP6GuOQ8M1EQ,refreshInterval:(pause:!t,value:10000),time:(from:'2017-10-05T20:28:28.475Z',to:'2017-10-05T20:34:38.341Z')) 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:52]                 │
[00:07:52]                 │ debg browser[INFO] http://localhost:61131/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:52]                 │ proc [kibana]   log   [08:25:39.345] [error][monitoring][monitoring][plugins] Error: Unable to find the cluster in the selected time range. UUID: YCxj-RAgSZCP6GuOQ8M1EQ
[00:07:52]                 │ proc [kibana]     at getClustersFromRequest (/dev/shm/workspace/kibana-build-13/x-pack/plugins/monitoring/server/lib/cluster/get_clusters_from_request.js:94:32)
[00:07:52]                 │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:07:52]                 │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:07:52]                 │ proc [kibana]     at Object.handler (/dev/shm/workspace/kibana-build-13/x-pack/plugins/monitoring/server/routes/api/v1/cluster/cluster.js:59:20)
[00:07:52]                 │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-13/x-pack/plugins/monitoring/server/plugin.js:401:28)
[00:07:52]                 │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-13/src/core/server/http/router/router.js:163:30)
[00:07:52]                 │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-13/src/core/server/http/router/router.js:124:50)
[00:07:52]                 │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-13/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:07:52]                 │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-13/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:07:52]                 │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-13/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:07:52]                 │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-13/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:07:52]                 │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-13/node_modules/@hapi/hapi/lib/request.js:279:9) {
[00:07:52]                 │ proc [kibana]   data: null,
[00:07:52]                 │ proc [kibana]   isBoom: true,
[00:07:52]                 │ proc [kibana]   isServer: false,
[00:07:52]                 │ proc [kibana]   output: {
[00:07:52]                 │ proc [kibana]     statusCode: 404,
[00:07:52]                 │ proc [kibana]     payload: {
[00:07:52]                 │ proc [kibana]       statusCode: 404,
[00:07:52]                 │ proc [kibana]       error: 'Not Found',
[00:07:52]                 │ proc [kibana]       message: 'Unable to find the cluster in the selected time range. UUID: YCxj-RAgSZCP6GuOQ8M1EQ'
[00:07:52]                 │ proc [kibana]     },
[00:07:52]                 │ proc [kibana]     headers: {}
[00:07:52]                 │ proc [kibana]   }
[00:07:52]                 │ proc [kibana] }
[00:07:52]                 │ERROR browser[SEVERE] http://localhost:61131/api/monitoring/v1/clusters/YCxj-RAgSZCP6GuOQ8M1EQ - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:07:52]                 │ info [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] Loading "mappings.json"
[00:07:52]                 │ info [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] Loading "data.json.gz"
[00:07:52]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.monitoring-kibana-6-2017.10.05] creating index, cause [api], templates [], shards [1]/[1]
[00:07:52]                 │ info [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] Created index ".monitoring-kibana-6-2017.10.05"
[00:07:52]                 │ debg [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] ".monitoring-kibana-6-2017.10.05" settings {"index":{"codec":"best_compression","format":"6","number_of_replicas":"1","number_of_shards":"1"}}
[00:07:52]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.monitoring-alerts-6] creating index, cause [api], templates [], shards [1]/[1]
[00:07:52]                 │ info [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] Created index ".monitoring-alerts-6"
[00:07:52]                 │ debg [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] ".monitoring-alerts-6" settings {"index":{"codec":"best_compression","format":"6","number_of_replicas":"1","number_of_shards":"1"}}
[00:07:52]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.monitoring-logstash-6-2017.10.05] creating index, cause [api], templates [], shards [1]/[1]
[00:07:53]                 │ info [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] Created index ".monitoring-logstash-6-2017.10.05"
[00:07:53]                 │ debg [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] ".monitoring-logstash-6-2017.10.05" settings {"index":{"codec":"best_compression","format":"6","number_of_replicas":"1","number_of_shards":"1"}}
[00:07:53]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.monitoring-es-6-2017.10.05] creating index, cause [api], templates [], shards [1]/[1]
[00:07:53]                 │ info [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] Created index ".monitoring-es-6-2017.10.05"
[00:07:53]                 │ debg [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] ".monitoring-es-6-2017.10.05" settings {"index":{"codec":"best_compression","format":"6","number_of_replicas":"1","number_of_shards":"1"}}
[00:07:53]                 │ info [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] Indexed 21 docs into ".monitoring-kibana-6-2017.10.05"
[00:07:53]                 │ info [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] Indexed 1 docs into ".monitoring-alerts-6"
[00:07:53]                 │ info [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] Indexed 3 docs into ".monitoring-logstash-6-2017.10.05"
[00:07:53]                 │ info [x-pack/test/functional/es_archives/monitoring/singlecluster_three_nodes_shard_relocation] Indexed 1317 docs into ".monitoring-es-6-2017.10.05"
[00:07:53]                 │ debg replacing kibana config doc: {}
[00:07:54]                 │ debg navigating to monitoring url: http://localhost:61131/app/monitoring
[00:07:54]                 │ debg navigate to: http://localhost:61131/app/monitoring
[00:07:54]                 │ debg browser[INFO] http://localhost:61131/app/monitoring?_t=1626855941014 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:54]                 │
[00:07:54]                 │ debg browser[INFO] http://localhost:61131/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:54]                 │ debg ... sleep(700) start
[00:07:55]                 │ debg ... sleep(700) end
[00:07:55]                 │ debg returned from get, calling refresh
[00:07:56]                 │ debg browser[INFO] http://localhost:61131/app/monitoring?_t=1626855941014 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:07:56]                 │
[00:07:56]                 │ debg browser[INFO] http://localhost:61131/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:56]                 │ debg currentUrl = http://localhost:61131/app/monitoring
[00:07:56]                 │          appUrl = http://localhost:61131/app/monitoring
[00:07:56]                 │ debg TestSubjects.find(kibanaChrome)
[00:07:56]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:07:57]                 │ debg ... sleep(501) start
[00:07:57]                 │ proc [kibana] ResponseError: security_exception: [security_exception] Reason: action [cluster:monitor/state] is unauthorized for user [test_user] with roles [monitoring_user,kibana_admin], this action is granted by the cluster privileges [read_ccr,transport_client,manage_ccr,monitor,manage,all]
[00:07:57]                 │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-13/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:07:57]                 │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-13/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:07:57]                 │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:07:57]                 │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:07:57]                 │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:07:57]                 │ proc [kibana]   meta: {
[00:07:57]                 │ proc [kibana]     body: { error: [Object], status: 403 },
[00:07:57]                 │ proc [kibana]     statusCode: 403,
[00:07:57]                 │ proc [kibana]     headers: {
[00:07:57]                 │ proc [kibana]       'x-opaque-id': '8fec0bef-f476-49a6-823c-c821044aa40d',
[00:07:57]                 │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:07:57]                 │ proc [kibana]       'content-type': 'application/json;charset=utf-8',
[00:07:57]                 │ proc [kibana]       'content-length': '555'
[00:07:57]                 │ proc [kibana]     },
[00:07:57]                 │ proc [kibana]     meta: {
[00:07:57]                 │ proc [kibana]       context: null,
[00:07:57]                 │ proc [kibana]       request: [Object],
[00:07:57]                 │ proc [kibana]       name: 'elasticsearch-js',
[00:07:57]                 │ proc [kibana]       connection: [Object],
[00:07:57]                 │ proc [kibana]       attempts: 0,
[00:07:57]                 │ proc [kibana]       aborted: false
[00:07:57]                 │ proc [kibana]     }
[00:07:57]                 │ proc [kibana]   }
[00:07:57]                 │ proc [kibana] }
[00:07:57]                 │ERROR browser[SEVERE] http://localhost:61131/api/monitoring/v1/elasticsearch_settings/check/cluster - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:07:57]                 │ERROR browser[SEVERE] http://localhost:61131/api/monitoring/v1/elasticsearch_settings/check/nodes - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:07:57]                 │ debg ... sleep(501) end
[00:07:57]                 │ debg in navigateTo url = http://localhost:61131/app/monitoring#/no-data?_g=(filters:!(),refreshInterval:(pause:!f,value:10000),time:(from:now-15m,to:now))
[00:07:57]                 │ debg pauseAutoRefresh
[00:07:57]                 │ debg setting menu open state [name=QuickSelectTime Menu] [state=open]
[00:07:57]                 │ debg TestSubjects.exists(superDatePickerQuickMenu)
[00:07:57]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerQuickMenu"]') with timeout=1000
[00:07:58]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerQuickMenu"] is not displayed
[00:07:59]                 │ debg TestSubjects.click(superDatePickerToggleQuickMenuButton)
[00:07:59]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=10000
[00:07:59]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=10000
[00:07:59]                 │ debg TestSubjects.exists(superDatePickerQuickMenu)
[00:07:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerQuickMenu"]') with timeout=10000
[00:07:59]                 │ debg TestSubjects.getAttribute(superDatePickerRefreshIntervalInput, value, tryTimeout=120000, findTimeout=10000)
[00:07:59]                 │ debg TestSubjects.find(superDatePickerRefreshIntervalInput)
[00:07:59]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerRefreshIntervalInput"]') with timeout=10000
[00:07:59]                 │ debg TestSubjects.find(superDatePickerRefreshIntervalUnitsSelect)
[00:07:59]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerRefreshIntervalUnitsSelect"]') with timeout=10000
[00:07:59]                 │ debg Find.allDescendantDisplayedByCssSelector('option')
[00:07:59]                 │ debg TestSubjects.getVisibleText(superDatePickerToggleRefreshButton)
[00:07:59]                 │ debg TestSubjects.find(superDatePickerToggleRefreshButton)
[00:07:59]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerToggleRefreshButton"]') with timeout=10000
[00:07:59]                 │ debg pause auto refresh
[00:07:59]                 │ debg TestSubjects.click(superDatePickerToggleRefreshButton)
[00:07:59]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerToggleRefreshButton"]') with timeout=10000
[00:07:59]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerToggleRefreshButton"]') with timeout=10000
[00:07:59]                 │ debg setting menu open state [name=QuickSelectTime Menu] [state=closed]
[00:07:59]                 │ debg TestSubjects.exists(superDatePickerQuickMenu)
[00:07:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerQuickMenu"]') with timeout=1000
[00:07:59]                 │ debg TestSubjects.click(superDatePickerToggleQuickMenuButton)
[00:07:59]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=10000
[00:07:59]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=10000
[00:07:59]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="superDatePickerQuickMenu"]') with timeout=10000
[00:08:00]                 │ debg Setting absolute range to Oct 5, 2017 @ 20:31:48.354 to Oct 5, 2017 @ 20:35:12.176
[00:08:00]                 │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:08:00]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:08:00]                 │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:08:00]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:08:01]                 │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:08:01]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:08:01]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:08:01]                 │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:08:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:08:01]                 │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:08:01]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:08:01]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:08:01]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:08:01]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:08:01]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:08:01]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:08:01]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:08:01]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:08:01]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:08:01]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Oct 5, 2017 @ 20:35:12.176)
[00:08:01]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:08:01]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:08:01]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:08:02]                 │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:08:02]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:08:02]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:08:02]                 │ debg Find.waitForElementStale with timeout=10000
[00:08:02]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:08:02]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:08:02]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:08:02]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:08:02]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:08:02]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:08:02]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:08:02]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Oct 5, 2017 @ 20:31:48.354)
[00:08:02]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:08:02]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:08:02]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:08:02]                 │ debg Waiting up to 20000ms for Timepicker popover to close...
[00:08:02]                 │ debg TestSubjects.exists(superDatePickerAbsoluteDateInput)
[00:08:02]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=2500
[00:08:02]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerAbsoluteDateInput"] is not displayed
[00:08:06]                 │ debg --- retry.tryForTime failed again with the same message...
[00:08:06]                 │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:08:06]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:08:09]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:08:09]                 │ debg TestSubjects.click(querySubmitButton)
[00:08:09]                 │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:08:09]                 │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:08:09]                 │ debg Find.waitForElementStale with timeout=10000
[00:08:09]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:08:09]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:08:09]                 │ debg TestSubjects.click(alerts-modal-button)
[00:08:09]                 │ debg Find.clickByCssSelector('[data-test-subj="alerts-modal-button"]') with timeout=10000
[00:08:09]                 │ debg Find.findByCssSelector('[data-test-subj="alerts-modal-button"]') with timeout=10000
[00:08:11]                 │ debg TestSubjects.click(clusterItemContainerElasticsearch > esNumberOfNodes)
[00:08:11]                 │ debg Find.clickByCssSelector('[data-test-subj="clusterItemContainerElasticsearch"] [data-test-subj="esNumberOfNodes"]') with timeout=10000
[00:08:11]                 │ debg Find.findByCssSelector('[data-test-subj="clusterItemContainerElasticsearch"] [data-test-subj="esNumberOfNodes"]') with timeout=10000
[00:08:11]                 │ proc [kibana]   log   [08:25:57.664] [info][monitoring][monitoring][plugins] Skipping alert creation for "default" space; Stack monitoring alerts require Transport Layer Security between Kibana and Elasticsearch, and an encryption key in your kibana.yml file.
[00:08:11]                 │ debg TestSubjects.find(elasticsearchNodesListingPage)
[00:08:11]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesListingPage"]') with timeout=10000
[00:08:11]               └-> should have an Elasticsearch Cluster Summary Status with correct info
[00:08:11]                 └-> "before each" hook: global before each for "should have an Elasticsearch Cluster Summary Status with correct info"
[00:08:11]                 │ debg TestSubjects.getVisibleText(elasticsearchClusterStatus > nodesCount)
[00:08:11]                 │ debg TestSubjects.find(elasticsearchClusterStatus > nodesCount)
[00:08:11]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchClusterStatus"] [data-test-subj="nodesCount"]') with timeout=10000
[00:08:11]                 │ debg TestSubjects.getVisibleText(elasticsearchClusterStatus > indicesCount)
[00:08:11]                 │ debg TestSubjects.find(elasticsearchClusterStatus > indicesCount)
[00:08:11]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchClusterStatus"] [data-test-subj="indicesCount"]') with timeout=10000
[00:08:11]                 │ debg TestSubjects.getVisibleText(elasticsearchClusterStatus > memory)
[00:08:11]                 │ debg TestSubjects.find(elasticsearchClusterStatus > memory)
[00:08:11]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchClusterStatus"] [data-test-subj="memory"]') with timeout=10000
[00:08:11]                 │ debg TestSubjects.getVisibleText(elasticsearchClusterStatus > totalShards)
[00:08:11]                 │ debg TestSubjects.find(elasticsearchClusterStatus > totalShards)
[00:08:11]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchClusterStatus"] [data-test-subj="totalShards"]') with timeout=10000
[00:08:11]                 │ debg TestSubjects.getVisibleText(elasticsearchClusterStatus > unassignedShards)
[00:08:11]                 │ debg TestSubjects.find(elasticsearchClusterStatus > unassignedShards)
[00:08:11]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchClusterStatus"] [data-test-subj="unassignedShards"]') with timeout=10000
[00:08:11]                 │ debg TestSubjects.getVisibleText(elasticsearchClusterStatus > documentCount)
[00:08:11]                 │ debg TestSubjects.find(elasticsearchClusterStatus > documentCount)
[00:08:11]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchClusterStatus"] [data-test-subj="documentCount"]') with timeout=10000
[00:08:11]                 │ debg TestSubjects.getVisibleText(elasticsearchClusterStatus > dataSize)
[00:08:11]                 │ debg TestSubjects.find(elasticsearchClusterStatus > dataSize)
[00:08:11]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchClusterStatus"] [data-test-subj="dataSize"]') with timeout=10000
[00:08:11]                 │ debg TestSubjects.getAttribute(elasticsearchClusterStatus > statusIcon, alt, tryTimeout=120000, findTimeout=10000)
[00:08:11]                 │ debg TestSubjects.find(elasticsearchClusterStatus > statusIcon)
[00:08:11]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchClusterStatus"] [data-test-subj="statusIcon"]') with timeout=10000
[00:08:11]                 └- ✓ pass  (449ms) "Monitoring app Elasticsearch nodes listing mb with only online nodes should have an Elasticsearch Cluster Summary Status with correct info"
[00:08:11]               └-> should filter for specific indices
[00:08:11]                 └-> "before each" hook: global before each for "should filter for specific indices"
[00:08:11]                 │ debg TestSubjects.setValue(elasticsearchNodesTableContainer > monitoringTableToolBar, 01)
[00:08:11]                 │ debg TestSubjects.click(elasticsearchNodesTableContainer > monitoringTableToolBar)
[00:08:11]                 │ debg Find.clickByCssSelector('[data-test-subj="elasticsearchNodesTableContainer"] [data-test-subj="monitoringTableToolBar"]') with timeout=10000
[00:08:11]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesTableContainer"] [data-test-subj="monitoringTableToolBar"]') with timeout=10000
[00:08:11]                 │ debg isGlobalLoadingIndicatorVisible
[00:08:11]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:08:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:08:13]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:08:14]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:08:14]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:08:14]                 │ debg Find.waitForDeletedByCssSelector('.euiBasicTable-loading') with timeout=5000
[00:08:14]                 │ debg TestSubjects.find(elasticsearchNodesTableContainer)
[00:08:14]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesTableContainer"]') with timeout=10000
[00:08:14]                 │ debg TestSubjects.setValue(elasticsearchNodesTableContainer > monitoringTableToolBar,  )
[00:08:14]                 │ debg TestSubjects.click(elasticsearchNodesTableContainer > monitoringTableToolBar)
[00:08:14]                 │ debg Find.clickByCssSelector('[data-test-subj="elasticsearchNodesTableContainer"] [data-test-subj="monitoringTableToolBar"]') with timeout=10000
[00:08:14]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesTableContainer"] [data-test-subj="monitoringTableToolBar"]') with timeout=10000
[00:08:14]                 │ debg Find.waitForDeletedByCssSelector('.euiBasicTable-loading') with timeout=5000
[00:08:15]                 └- ✓ pass  (4.0s) "Monitoring app Elasticsearch nodes listing mb with only online nodes should filter for specific indices"
[00:08:15]               └-> should filter for non-existent index
[00:08:15]                 └-> "before each" hook: global before each for "should filter for non-existent index"
[00:08:15]                 │ debg TestSubjects.setValue(elasticsearchNodesTableContainer > monitoringTableToolBar, foobar)
[00:08:15]                 │ debg TestSubjects.click(elasticsearchNodesTableContainer > monitoringTableToolBar)
[00:08:15]                 │ debg Find.clickByCssSelector('[data-test-subj="elasticsearchNodesTableContainer"] [data-test-subj="monitoringTableToolBar"]') with timeout=10000
[00:08:15]                 │ debg Find.findByCssSelector('[data-test-subj="elasticsearchNodesTableContainer"] [data-test-subj="monitoringTableToolBar"]') with timeout=10000
[00:08:16]                 │ debg isGlobalLoadingIndicatorVisible
[00:08:16]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:08:16]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:08:16]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:08:16]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:08:16]                 │ERROR browser[SEVERE] http://localhost:61131/api/monitoring/v1/clusters/YCxj-RAgSZCP6GuOQ8M1EQ/elasticsearch/nodes - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:08:16]                 │ERROR browser[SEVERE] http://localhost:61131/api/monitoring/v1/clusters/YCxj-RAgSZCP6GuOQ8M1EQ/elasticsearch/nodes - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:08:16]                 │ERROR browser[SEVERE] http://localhost:61131/api/monitoring/v1/clusters/YCxj-RAgSZCP6GuOQ8M1EQ/elasticsearch/nodes - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:08:16]                 │ debg Find.waitForDeletedByCssSelector('.euiBasicTable-loading') with timeout=5000
[00:08:17]                 │ debg TestSubjects.exists(elasticsearchNodesTableContainer > monitoringTableNoData)
[00:08:17]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="elasticsearchNodesTableContainer"] [data-test-subj="monitoringTableNoData"]') with timeout=2500
[00:08:19]                 │ debg --- retry.tryForTime error: [data-test-subj="elasticsearchNodesTableContainer"] [data-test-subj="monitoringTableNoData"] is not displayed
[00:08:20]                 │ info Taking screenshot "/dev/shm/workspace/parallel/13/kibana/x-pack/test/functional/screenshots/failure/Monitoring app Elasticsearch nodes listing mb with only online nodes should filter for non-existent index.png"
[00:08:20]                 │ info Current URL is: http://localhost:61131/app/monitoring#/elasticsearch/nodes?_g=(cluster_uuid:YCxj-RAgSZCP6GuOQ8M1EQ,refreshInterval:(pause:!t,value:10000),time:(from:%272017-10-05T20:31:48.354Z%27,to:%272017-10-05T20:35:12.176Z%27))
[00:08:20]                 │ info Saving page source to: /dev/shm/workspace/parallel/13/kibana/x-pack/test/functional/failure_debug/html/Monitoring app Elasticsearch nodes listing mb with only online nodes should filter for non-existent index.html
[00:08:20]                 └- ✖ fail: Monitoring app Elasticsearch nodes listing mb with only online nodes should filter for non-existent index
[00:08:20]                 │      Error: Expected to find the no data message
[00:08:20]                 │       at MonitoringPageObject.assertTableNoData (test/functional/page_objects/monitoring_page.ts:29:13)
[00:08:20]                 │       at Context.<anonymous> (test/functional/apps/monitoring/elasticsearch/nodes_mb.js:299:9)
[00:08:20]                 │       at Object.apply (/dev/shm/workspace/parallel/13/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:08:20]                 │ 
[00:08:20]                 │ 

Stack Trace

Error: Expected to find the no data message
    at MonitoringPageObject.assertTableNoData (test/functional/page_objects/monitoring_page.ts:29:13)
    at Context.<anonymous> (test/functional/apps/monitoring/elasticsearch/nodes_mb.js:299:9)
    at Object.apply (/dev/shm/workspace/parallel/13/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
visTypeTimeseries 1002.5KB 1002.8KB +316.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @dziyanadzeraviankina

@stratoula stratoula marked this pull request as ready for review July 21, 2021 12:42
@stratoula stratoula requested a review from a team July 21, 2021 12:42
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Copy link
Copy Markdown
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, code review only 👏

@DianaDerevyankina DianaDerevyankina merged commit 2e0fdda into elastic:master Jul 21, 2021
DianaDerevyankina added a commit to DianaDerevyankina/kibana that referenced this pull request Jul 21, 2021
* [TSVB] Add more functional tests for Gauge and TopN

* Update visual_builder_page.ts

* Update functions related to gauge color and filter ratio numerator in visual_builder_page

* Update visual_builder_page and add some more test subjects

* Update _tsvb_chart.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jul 21, 2021
…y-show-migrate-to-authzd-users

* 'master' of github.com:elastic/kibana: (48 commits)
  [Canvas] Expression shape (elastic#103219)
  [FTR] Skips Vega tests
  [Sample data] Use Lens in ecommerce data (elastic#106039)
  [APM] Backends inventory & overview page routes (elastic#106223)
  [TSVB] Add more functional tests for Gauge and TopN (elastic#105361)
  Add toggle to enable/disable rule install from SOs (elastic#106189)
  Improve unit test coverage of FS API calls (elastic#106242)
  Remove recursive plugin status in meta field (elastic#106286)
  [Ingest pipelines] add community id processor (elastic#103863)
  [XY axis] Fixes the values inside bar charts (elastic#106198)
  [data.search] Set default expiration to 1m if search sessions are disabled (elastic#105329)
  set the doc title when navigating to reporting and unset when navigating away (elastic#106253)
  [Lens] Display legend inside chart (elastic#105571)
  [RAC] [TGrid] Migrate the TGrid's rendering to `EuiDataGrid` (elastic#106199)
  [Security Solutions] Removes the elastic legacy client from lists and security_solution plugins (elastic#106130)
  [Enterprise Search] Require security plugin in 8.0 (elastic#106307)
  [DOCS] Updates screenshots in Dev Tools docs (elastic#105859)
  [DOCS] Updates text and screenshots in tags doc (elastic#105853)
  [Alerting] Allow rule types to extract/inject saved object references on rule CRU (elastic#101896)
  Jest and Storybook fixes (elastic#104991)
  ...

# Conflicts:
#	x-pack/plugins/reporting/public/plugin.ts
DianaDerevyankina added a commit that referenced this pull request Jul 21, 2021
* [TSVB] Add more functional tests for Gauge and TopN

* Update visual_builder_page.ts

* Update functions related to gauge color and filter ratio numerator in visual_builder_page

* Update visual_builder_page and add some more test subjects

* Update _tsvb_chart.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:TSVB TSVB (Time Series Visual Builder) release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v7.15.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants