Dashboards: Enable scenes by default (#93818)

* Mark Scenes feature toggles as GA

* Move old arch e2e to a new folder

* Run E2E on scenes by default

* Upgrade e2e-selectors to ensure the tests in Playwright works
This commit is contained in:
Ivan Ortega Alba
2024-09-30 10:49:02 +01:00
committed by GitHub
parent 42f1fcaf2c
commit 7bca69849f
163 changed files with 748 additions and 747 deletions
+6 -7
View File
@@ -6,6 +6,11 @@ export const smokeTestScenario = () =>
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'), false);
e2e.flows.addDataSource();
e2e.flows.addDashboard();
e2e.flows.addPanel({
dataSourceName: 'gdev-testdata',
visitDashboardAtStart: false,
timeout: 10000,
});
});
after(() => {
@@ -13,11 +18,6 @@ export const smokeTestScenario = () =>
});
it('Login scenario, create test data source, dashboard, panel, and export scenario', () => {
// wait for time to be set to account for any layout shift
cy.contains('2020-01-01 00:00:00 to 2020-01-01 06:00:00').should('be.visible');
e2e.components.PageToolbar.itemButton('Add button').click();
e2e.components.PageToolbar.itemButton('Add new visualization menu item').click();
e2e.components.DataSource.TestData.QueryTab.scenarioSelectContainer()
.should('be.visible')
.within(() => {
@@ -29,8 +29,7 @@ export const smokeTestScenario = () =>
// Make sure the graph renders via checking legend
e2e.components.VizLegend.seriesName('A-series').should('be.visible');
// Expand options section
e2e.components.PanelEditor.applyButton();
e2e.components.NavToolbar.editDashboard.backToDashboardButton().click();
// Make sure panel is & visualization is added to dashboard
e2e.components.VizLegend.seriesName('A-series').should('be.visible');