Chore: Remove `smoke-tests-suite` from cypress (#108700)

* remove smoke-tests-suite from cypress

* restore shared/smokeTestScenario for enterprise
This commit is contained in:
Ashley Harrison 2025-07-28 17:21:10 +01:00 committed by GitHub
parent 2dd655a50d
commit b32a6b0088
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 0 additions and 46 deletions

View File

@ -143,8 +143,6 @@ jobs:
path: e2e/various-suite path: e2e/various-suite
- suite: dashboards-suite - suite: dashboards-suite
path: e2e/dashboards-suite path: e2e/dashboards-suite
- suite: smoke-tests-suite
path: e2e/smoke-tests-suite
- suite: panels-suite - suite: panels-suite
path: e2e/panels-suite path: e2e/panels-suite
- suite: various-suite (old arch) - suite: various-suite (old arch)

View File

@ -1,3 +0,0 @@
import { smokeTestScenario } from '../shared/smokeTestScenario';
smokeTestScenario();

View File

@ -1,38 +0,0 @@
import { GrafanaBootConfig } from '@grafana/runtime';
import { e2e } from '../utils';
describe('Panels smokescreen', () => {
beforeEach(() => {
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'), false);
});
after(() => {
e2e.flows.revertAllChanges();
});
it('Tests each panel type in the panel edit view to ensure no crash', () => {
e2e.flows.addDashboard();
e2e.flows.addPanel({
dataSourceName: 'gdev-testdata',
timeout: 10000,
visitDashboardAtStart: false,
});
cy.window().then((win: Cypress.AUTWindow & { grafanaBootData: GrafanaBootConfig['bootData'] }) => {
// Loop through every panel type and ensure no crash
Object.entries(win.grafanaBootData.settings.panels).forEach(([_, panel]) => {
// TODO: Remove Flame Graph check as part of addressing #66803
if (!panel.hideFromList && panel.state !== 'deprecated') {
e2e.components.PanelEditor.toggleVizPicker().click();
e2e.components.PluginVisualization.item(panel.name).scrollIntoView().should('be.visible').click();
e2e.components.PanelEditor.toggleVizPicker().should((e) => expect(e).to.contain(panel.name));
// TODO: Come up with better check / better failure messaging to clearly indicate which panel failed
cy.contains('An unexpected error happened').should('not.exist');
}
});
});
});
});

View File

@ -1,3 +0,0 @@
import { smokeTestScenario } from '../../shared/smokeTestScenario';
smokeTestScenario();