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

[Pie] Run all functional tests for the new implementation #131700

Merged
merged 19 commits into from
May 11, 2022

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented May 6, 2022

Summary

I removed the 'visualization:visualize:legacyPieChartsLibrary': true, from the functional tests suite. This means that now all the pie chart tests are using the new implementation (EC).

I am testing the old implementation in specific scenarios. These scenarios should be removed when we remove the vislib implementation of the pie.

Checklist

@@ -65,7 +64,6 @@ const LegendToggleComponent = ({ onClick, showLegend, legendPosition }: LegendTo
defaultMessage: 'Toggle legend',
})}
aria-expanded={showLegend}
aria-controls={legendId}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ℹ️ This aria property is used with the wrong way (the dashboard a11y tests were also complaining)

@elastic elastic deleted a comment from kibana-ci May 9, 2022
await queryBar.clickQuerySubmitButton();
await retry.tryForTime(5000, async () => {
const headers = await PageObjects.discover.getColumnHeaders();
expect(headers.length).to.be(0);
await pieChart.expectPieSliceCount(0);
await pieChart.expectEmptyPieChart();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ℹ️ We don't have EC debug state for empty charts so I am testing this scenario with the empty chart container.

@stratoula stratoula added Feature:Pie Chart Pie chart visualization feature Team:Visualizations Visualization editors, elastic-charts and infrastructure release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting v8.3.0 labels May 10, 2022
@stratoula stratoula marked this pull request as ready for review May 10, 2022 12:21
@stratoula stratoula requested review from a team as code owners May 10, 2022 12:21
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

Copy link
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for this cleanup ❤️

@kibana-ci
Copy link
Collaborator

💚 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
charts 78.7KB 78.6KB -87.0B

History

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

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Presentation team updates LGTM! Code only review, left one small question.

@@ -140,6 +144,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.dashboard.gotoDashboardLandingPage();
await PageObjects.dashboard.loadSavedDashboard('with filters');
await PageObjects.header.waitUntilLoadingHasFinished();
await elasticChart.setNewChartUiDebugFlag(true);
await queryBar.submitQuery();
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the debug flag not decorate the pie slices until after the query has been submitted?

Copy link
Contributor Author

@stratoula stratoula May 11, 2022

Choose a reason for hiding this comment

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

It needs to be re-rendered (the pie chart) so this is the reason I am submitting the query. If you refresh, the window flag is lost, so you need to do something to re-render it but without refreshing the browser.

@stratoula stratoula merged commit c05f891 into elastic:main May 11, 2022
academo pushed a commit to academo/kibana that referenced this pull request May 12, 2022
…1700)

* [Pie] Run all functional tests for the new implementation

* Fix CI

* Fix tests

* More fixes

* More test foxes

* Fix a11y tests

* Further fies

* Fix

* Further fixes

* Final fixes

* Fix more pie related tests

* Fixes more fixes

* Fix dashboard tests

* Fix dashboard filtering test

* Fix the reporting tests

* BWC tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Pie Chart Pie chart visualization feature release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants