Flaky E2E: Wait for the data to be loaded before switch to table view (#66072)

Fix flaky e2e for panel edit suite
This commit is contained in:
Ivan Ortega Alba 2023-04-06 09:07:41 +02:00 committed by GitHub
parent 421b911c45
commit 45df536263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,7 @@ e2e.scenario({
e2e.components.PluginVisualization.current().should((e) => expect(e).to.contain('Time series'));
// Check that table view works
e2e.components.Panels.Panel.loadingBar().should('not.exist');
e2e.components.PanelEditor.toggleTableView().click({ force: true });
e2e.components.Panels.Visualization.Table.header()
.should('be.visible')

View File

@ -76,6 +76,7 @@ export const Components = {
menu: (title: string) => `data-testid Panel menu ${title}`,
containerByTitle: (title: string) => `${title} panel`,
headerCornerInfo: (mode: string) => `Panel header ${mode}`,
loadingBar: () => `Panel loading bar`,
},
Visualization: {
Graph: {