-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TSVB] Add more functional tests for Gauge and TopN #105361
[TSVB] Add more functional tests for Gauge and TopN #105361
Conversation
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'); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
public async setFilterRatioNumerator(numerator: string) { | ||
const numeratorInput = await this.find.byCssSelector( | ||
'.tvbAggRow [data-test-subj="queryInput"]' | ||
); | ||
await numeratorInput.type(numerator); | ||
} |
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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?
# Conflicts: # test/functional/apps/visualize/_tsvb_chart.ts
… visual_builder_page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@elasticmachine merge upstream |
@@ -358,6 +358,12 @@ export class VisualBuilderPageObject extends FtrService { | |||
return await gaugeCount.getVisibleText(); | |||
} | |||
|
|||
public async getGaugeColor(type: undefined | 'Inner' = undefined): Promise<string> { |
There was a problem hiding this comment.
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?
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Test FailuresKibana 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 indexStandard Out
Stack Trace
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Pinging @elastic/kibana-app (Team:KibanaApp) |
There was a problem hiding this 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 👏
* [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>
…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
* [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>
Summary
Added functional tests for TSVB
Gauge
andTopN
covering cases mentioned here (#102606)For maintainers