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

Migrated agg table karma tests to jest #71224

Merged
merged 6 commits into from
Jul 13, 2020
Merged

Conversation

VladLasitsa
Copy link
Contributor

Part of #57813

Summary

Migrated agg table karma tests to jest

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@VladLasitsa VladLasitsa requested a review from alexwizp July 9, 2020 11:25
@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@VladLasitsa VladLasitsa self-assigned this Jul 10, 2020
@VladLasitsa VladLasitsa added Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.9.0 v8.0.0 labels Jul 10, 2020
@VladLasitsa VladLasitsa marked this pull request as ready for review July 10, 2020 10:32
@VladLasitsa VladLasitsa requested a review from a team July 10, 2020 10:32
@elasticmachine
Copy link
Contributor

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

@alexwizp
Copy link
Contributor

@elasticmachine merge upstream

$cellContent = $cell.find('[data-cell-content]');
// in jest tests 'angular' is using jqLite. In jqLite the method find lookups only by tags.
// Because of this, we should change a way how we get cell content so that tests will pass.
$cellContent = angular.element($cell[0].querySelector('[data-cell-content]'));
Copy link
Contributor

@alexwizp alexwizp Jul 13, 2020

Choose a reason for hiding this comment

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

as an alternative to your solution, we can use a not-so-popular tag (e.g. <section>) for an [data-cell-content] element
But I'm ok with this solution too

Copy link
Contributor

@alexwizp alexwizp left a comment

Choose a reason for hiding this comment

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

LGTM

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 🎉

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

@alexwizp alexwizp merged commit 639f8b7 into elastic:master Jul 13, 2020
alexwizp pushed a commit to alexwizp/kibana that referenced this pull request Jul 13, 2020
* Migrated karma tests to jest

* Add comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
alexwizp added a commit that referenced this pull request Jul 13, 2020
* Migrated karma tests to jest

* Add comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants