Skip to content
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 Table #105060

Merged

Conversation

DianaDerevyankina
Copy link
Contributor

@DianaDerevyankina DianaDerevyankina commented Jul 9, 2021

Summary

Added functional tests for TSVB Table covering cases mentioned here (#102606)

image

For maintainers

@DianaDerevyankina DianaDerevyankina self-assigned this Jul 9, 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) Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.15.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels Jul 13, 2021
@alexwizp alexwizp requested a review from VladLasitsa July 16, 2021 08:27
Comment on lines 739 to 742
const [, denominatorInput] = await this.find.allByCssSelector(
'.tvbAggRow [data-test-subj="queryInput"]'
);
await denominatorInput.type(denominator);
Copy link
Contributor

Choose a reason for hiding this comment

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

can we create private function with common logic and in these methods just return needed input?

Copy link
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 comment

Copy link
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


public async setFilterRatioOption(optionType: 'numerator' | 'denominator', query: string) {
const optionInput = await this.find.byCssSelector(
`[data-test-subj="${optionType}Row"] [data-test-subj="queryInput"]`
Copy link
Contributor

@alexwizp alexwizp Jul 16, 2021

Choose a reason for hiding this comment

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

@VladLasitsa @dziyanadzeraviankina
we are trying to avoid using css selectors especially if for both components we already added data-test-subj attributes

Please see next example:
image

Please check other places

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

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.3KB 1002.4KB +150.0B

History

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

cc @dziyanadzeraviankina

@alexwizp alexwizp requested a review from stratoula July 20, 2021 10:05
@alexwizp alexwizp marked this pull request as ready for review July 20, 2021 13:09
@alexwizp alexwizp requested a review from a team July 20, 2021 13:09
@elasticmachine
Copy link
Contributor

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

Copy link
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, thanx @dziyanadzeraviankina :)

@DianaDerevyankina DianaDerevyankina merged commit ca87cd7 into elastic:master Jul 20, 2021
DianaDerevyankina added a commit to DianaDerevyankina/kibana that referenced this pull request Jul 20, 2021
* [TSVB] Add more functional tests for Table

* Update filter ratio setting numerator denominator function

* Refactor set filter ratio numerator and denominator functions in visual_builder_page.ts

* Update setFilterRatioOption function
DianaDerevyankina added a commit that referenced this pull request Jul 20, 2021
* [TSVB] Add more functional tests for Table

* Update filter ratio setting numerator denominator function

* Refactor set filter ratio numerator and denominator functions in visual_builder_page.ts

* Update setFilterRatioOption function
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 Visualization editors, elastic-charts and infrastructure v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TSVB] Add more functional tests
6 participants